SpriteLayer class

A scratch layer: draw a sprite into it, give it a dark outline, recolor it, then stamp it onto the frame.

Constructors

SpriteLayer([int w = 64, int h = 64])

Properties

f → PixelFrame
final
hashCode → int
The hash code for this object.
no setterinherited
q ↔ Painter
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tmp → Uint32List
final

Methods

begin(num x0, num y0) → Painter
draw(Painter p, [double dx = 0.0, double dy = 0.0, double a = 1.0, (double, double)? clip]) → SpriteLayer
fill(num x0, num y0, num x1, num y1, int fn(double x, double y)) → void
get(num x, num y) → int
idx(num x, num y) → int
map(int fn(int x, int y, int c)) → SpriteLayer
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
outline(int c, {bool corners = false}) → SpriteLayer
outlineShaded(int fn(int x, int y, int c), {bool corners = false}) → SpriteLayer
set(num x, num y, int c) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited