Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

PixelLayer

One layer of a pixel texture as its painter writes it. A texel past an edge wraps onto the opposite one, and a coordinate that is no whole number floors, so a stroke across an edge continues on the far side and the texture tiles.

readPixel(x, y): number

The value at texel (x, y), as this layer holds it now.

Parameter Type
x number
y number

number


setPixel(x, y, value): void

Writes value at texel (x, y): Godot’s set_pixel and Unity’s SetPixel.

Parameter Type
x number
y number
value number

void