Text in Quake's console font (conchars, sixteen rows of sixteen 8 by 8 characters),
drawn onto a Cauldron3D.Frame. Colour 0 of the font is see-through.
frame = ElixirQuake.Text.draw(frame, "You got the shells", {8, 8})
Summary
Functions
Lines of text as one frame width wide, each centred, on colour clear, for drawing over a picture.
text with its top left at {x, y}; :alternate draws it in the font's other colour.
Character code of the font, as an 8 by 8 texture.
Functions
@spec centred([String.t()], pos_integer(), byte()) :: Cauldron3D.Frame.t()
Lines of text as one frame width wide, each centred, on colour clear, for drawing over a picture.
@spec draw(Cauldron3D.Frame.t(), String.t(), {integer(), integer()}, keyword()) :: Cauldron3D.Frame.t()
text with its top left at {x, y}; :alternate draws it in the font's other colour.
@spec glyph(Cauldron3D.Texture.t() | nil, 0..255) :: Cauldron3D.Texture.t()
Character code of the font, as an 8 by 8 texture.