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