dotMatrix
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.
Parameters
input
Input color (TSLNode) or texture node (for pixelated sampling)
Node<"vec4"> | TextureNode<"vec4">
uv
Node<"vec2">
UV coordinates
resolution
FloatInput = 160
Pixel resolution (default: 160 for GB)
pixelFill
FloatInput = 0.85
Fill ratio of pixel within cell (default: 0.85)
backgroundColor
Vec3Input = ...
Color of LCD background between pixels
Returns
Node<"vec4">
Color with dot matrix effect