Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matanlurey/pxl.dart
Tiny cross-platform pixel buffer.
https://github.com/matanlurey/pxl.dart
dartlang pixels software-renderer
Last synced: about 1 month ago
JSON representation
Tiny cross-platform pixel buffer.
- Host: GitHub
- URL: https://github.com/matanlurey/pxl.dart
- Owner: matanlurey
- License: mit
- Created: 2024-08-13T16:47:41.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-07T22:29:20.000Z (2 months ago)
- Last Synced: 2024-09-29T16:02:10.234Z (about 1 month ago)
- Topics: dartlang, pixels, software-renderer
- Language: Dart
- Homepage: https://matanlurey.github.io/pxl.dart/
- Size: 877 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pxl
A tiny cross-platform pixel buffer and foundation for pixel-based graphics.
[![Pxl on pub.dev][pub_img]][pub_url]
[![Code coverage][cov_img]][cov_url]
[![Github action status][gha_img]][gha_url]
[![Dartdocs][doc_img]][doc_url]
[![Style guide][sty_img]][sty_url][pub_url]: https://pub.dartlang.org/packages/pxl
[pub_img]: https://img.shields.io/pub/v/pxl.svg
[gha_url]: https://github.com/matanlurey/pxl.dart/actions
[gha_img]: https://github.com/matanlurey/pxl.dart/actions/workflows/check.yaml/badge.svg
[cov_url]: https://coveralls.io/github/matanlurey/pxl.dart?branch=main
[cov_img]: https://coveralls.io/repos/github/matanlurey/pxl.dart/badge.svg?branch=main
[doc_url]: https://www.dartdocs.org/documentation/pxl/latest
[doc_img]: https://img.shields.io/badge/Documentation-latest-blue.svg
[sty_url]: https://pub.dev/packages/oath
[sty_img]: https://img.shields.io/badge/style-oath-9cf.svg## Usage
```dart
import 'package:pxl/pxl.dart';
```## Features
![Example](https://github.com/user-attachments/assets/91c33e94-707e-40e0-a420-cd51ac74dbed)
- Create and manipulate in-memory integer or floating-point pixel buffers.
- Define and convert between pixel formats.
- Palette-based indexed pixel formats.
- Buffer-to-buffer blitting with automatic format conversion and blend modes.
- Region-based pixel manipulation, replacement, and copying.## Contributing
To run the tests, run:
```shell
dart test
```To check code coverage locally, run:
```shell
./chore coverage
```To preview `dartdoc` output locally, run:
```shell
./chore dartodc
```### Inspiration and Sources
- [`MTLPixelFormat`](https://developer.apple.com/documentation/metal/mtlpixelformat)
- [`@thi.ng/pixel`](https://github.com/thi-ng/umbrella/tree/main/packages/pixel)
- [`embedded-graphics`](https://crates.io/crates/embedded-graphics)
-