Open bhillier3 opened 4 years ago
Notes from meeting about implementation details:
class Sprite
layers: Array<SpriteLayer>(5)
changePixel(coords: ImageCoordinates, layer: number);
getPixelAt(ImageCoords, layers?: Array<number):
look at the topmost non-"transparent" pixel in layers
}
type SpriteLayer = Array<Array<number>>
"Transparent" pixels in layers can be a value of -1.
Holds Layers for original images, edits, etc.