Log inGet started
Package

grandPrixKit.package

Newest version

README.md

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.color fills the blocks, opts.shadow adds a hard one-cell step shadow in that colour, opts.spacing sets the gap between letters (default 1).
  • node(text, cell, opts?): a ready svg widget node sized cell points per block; opts.style merges into its style.
  • has(ch): whether a glyph exists for the character.