pixel_art_generator 1.0.1 copy "pixel_art_generator: ^1.0.1" to clipboard
pixel_art_generator: ^1.0.1 copied to clipboard

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

Pixel art generator #

Pub

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;

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);

Support this project #

Buy Me A Coffee

Credits #

Inspired by Pixel Sprite Generator

Created by @albemala (Twitter).

2
likes
130
pub points
0%
popularity

Publisher

verified publisheralbemala.me

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on pixel_art_generator