Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamPHEN/aseprite-rgba-converter
Tiny project to convert a .ase to a RGBA Byte array
https://github.com/iamPHEN/aseprite-rgba-converter
Last synced: about 2 months ago
JSON representation
Tiny project to convert a .ase to a RGBA Byte array
- Host: GitHub
- URL: https://github.com/iamPHEN/aseprite-rgba-converter
- Owner: iamPHEN
- License: mit
- Created: 2016-09-01T03:44:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-04T04:45:45.000Z (over 8 years ago)
- Last Synced: 2024-08-04T02:10:42.468Z (5 months ago)
- Language: C++
- Size: 462 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- AwesomeCppGameDev - aseprite-rgba-converter
README
# aseprite-rgba-converter
Tiny project to convert a .ase to a RGBA Byte arrayPlease checkout http://www.aseprite.org/, or https://github.com/aseprite/aseprite for more infromation about Aseprite!
---
This project is intended as a intermediary library for converting ".ase" files directly into SFML::Sprite.
Project implements parser for the [ase file format](https://github.com/aseprite/aseprite/blob/master/docs/files/ase.txt) and converts it to doc-lite.h objects which is based on the aseprite doc module.
Currently a bit of a work in progress, but it's functional 'enough' to use.
| | Is Supported? ( X is yes ) |
|:-------------------:|:--------------------------:|
| Frame-Tags | X |
| Animations | X |
| Color Mode: RGBA | X |
| Color Mode: Grey | |
| Color Mode: Indexed | |
| Pallets | |
| Transparent BG | X |
| Layers | |
| Layer-Blending | |
| Colored BG | |Example usage:
```
#include "loader.h"aseprite::Sprite s = aseprite::load_sprite_from_file("AwesomeSprite.ase");
// You can do stuff with each frame's pixels with: s.frames[0].pixels, this is a 32-bit RGBA vector.
```### Descriptions:
integration_test: Tests with version 1.1 ase files.
doc-lite.h: A lite copy of aespirte's doc module.
loader.h: Meat of the project, provides `load_sprite()` and `load_sprite_from_file()`.