Skip to content

dotMatrix(input, uv, resolution?, pixelFill?, backgroundColor?): Node <"vec4">

Defined in: packages/nodes/src/display/lcd.ts:77

Game Boy DMG-style dot matrix display. Simulates the distinctive square-pixel LCD look of the original Game Boy.

When input is a TextureNode (has .sample()), it pixelates by snapping UVs to pixel centers. When input is a computed color, applies pixel grid only.

Pixel edges are slightly soft to simulate the slow LCD crystal response time characteristic of Game Boy hardware.

Node <"vec4"> | TextureNode <"vec4">

Input color (TSLNode) or texture node (for pixelated sampling)

Node <"vec2">

UV coordinates

FloatInput = 160

Pixel resolution (default: 160 for GB)

FloatInput = 0.85

Fill ratio of pixel within cell (default: 0.85)

Vec3Input = ...

Color of LCD background between pixels

Node <"vec4">

Color with dot matrix effect