pixel_art_generator

Last updated:

0 purchases

pixel_art_generator Image
pixel_art_generator Images
Add to Cart

Description:

pixel art generator

Pixel art generator #

A Flutter package to generate pixel art sprites from an optional template.



Humanoids
Robots
Spaceships










Examples #
Generate a single pixel art tile
final template = generateRandomPixelDataTemplate(
5,
5,
mirrorX: true,
mirrorY: false,
outline: true,
);
final pixelData = generateRandomPixelData(
1,
template,
).first;
copied to clipboard
Generate a list of pixel art tiles from a template
A set of predefined templates are
available here.
// load templates from assets/templates.json
final jsonString = await rootBundle.loadString('assets/templates.json');
final templates = loadPixelTemplatesFromJson(jsonString);
final humanoidTemplate = templates[...];
final pixelData = generateRandomPixelData(9, humanoidTemplate);
copied to clipboard
Support this project #

Credits #
Inspired by Pixel Sprite Generator
Created by @albemala (Twitter).

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.