▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage grandPrixKit.package·originates fromworld bfd9d3b0-2…
pixelType
A 5x7 bitmap alphabet drawn as crisp SVG blocks, so the `pixel` standings style has real 8-bit lettering (the engine ships no pixel font). Covers A to Z, 0 to 9 and `: . - + / ! ? ' ^ v` and space; lower case draws as upper case.
by·posted 8d ago
What it does
pixelType
A 5x7 bitmap alphabet drawn as crisp SVG blocks, so the pixel standings style has real 8-bit lettering (the engine ships no pixel font). Covers A to Z, 0 to 9 and : . - + / ! ? ' ^ v and space; lower case draws as upper case.
Functions
svg(text, opts?): the text as an SVG document on a grid of 1x1 cells; returns(svg, widthCells, heightCells).opts.colorfills the blocks,opts.shadowadds a hard one-cell step shadow in that colour,opts.spacingsets the gap between letters (default 1).node(text, cell, opts?): a readysvgwidget node sizedcellpoints per block;opts.stylemerges into its style.has(ch): whether a glyph exists for the character.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.