Guide 1 Docs 2 Reference 3
4

ModelTexture type

Pixel art for one face of a box: plain RGBA, and never repainted.

Functions 4

modelTexture:fill(color: Ink)

Paints every pixel one colour.

modelTexture:pixel(x: number, y: number, color: Ink)

Paints the pixel at x, y; colors.transparent makes it see-through.

modelTexture:rect(x: number, y: number, w: number, h: number, color: Ink)

Paints a rectangle w by h pixels from x, y.

modelTexture:draw(picture: Texture, x: number?, y: number?)

A game.texture over this one, its top left at x, y; see-through pixels skipped, what falls outside cut.