Git Product home page Git Product logo

arduboy-aseprite's Introduction

arduboy-aseprite

Aseprite extension for exporting sprites to C data, specifically in Arduboy format.

Dialog Example

Installation

Header over to the Releases section and download the latest .aseprite-extension file. Then, double click it to install in aseprite!

Note: You will probably have to restart Aseprite after installation.

Usage

Use File -> Export as C Array to export the current sprite / frame as C code.

After hitting Generate, your C code will come up in a dialog. To copy the text from this dialog, click the text portion and use your OS shortcut key for copying to the clipboard.

Format

  • 1 bit (horizontal)
    Data is stored horizontally with each byte representing 8 columns of pixels.
    Note: Any color under mid-gray will be a 0 bit, otherwise a 1 bit.
  • 1 bit (vertical)
    Data is stored in the Arduboy format, with each byte representing 8 vertical pixels.
    Note: Any color under mid-gray will be a 0 bit, otherwise a 1 bit.
  • 8 bit (indexed)
    Data is stored using the palette index of the pixel. Each pixel consumes 1 byte.
  • 32 bit (RGBA)
    Data is stored in RGBA format, where each 4 bytes represent the red, green, blue, and alpha components.

Export Layers

  • Individually
    Each layer, whether it is hidden or not, gets generated as it's own C array.

  • Flattened Together
    The entire sprite is converted to a single C array, as if the layers have been flattened.

    Template

    You can customize the template used to generate the variable C array. The string NAME will get converted into a friendly name.

    Include Dimensions

    If checked, the first two bytes of the array will be width and height of the sprite.

    Note: If the layer being processed has the work "mask" in it's name, the dimensions will NOT be included.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.