-
Notifications
You must be signed in to change notification settings - Fork 136
Glyphs
Anything.js has Glyphs - a function that can generate most words in the language of Dickiliese.
To create a glyph, you have plenty of options to choose from. Start with the g.build()
function. It takes the arguments base, shaft, end, tail
. Find more detail on the next sections:
The 'base' of the glyph, under g.base:
full
: 8
half
: 3
It's recommended to use shaftBuilder(shaft, length)
for this. It takes two parameters:
The character used to draw the shaft. Under g.shaftType
: double
(=) and alternative
(═)
The length of the shaft. Under g.shaftLength
: nano
(nothing), milli
(2), kilo
(5), mega
(10), giga
(20), tera
(100)
The character to end the shaft with. Under g.end
: circle
(D), circleDashed
(Ð), pointy
(>), rounded
( ) ), flat
( ] )
This will be appended to the end of the glyph. Under g.tail
: wavy
(~), g.flat
(-), g.double
(=).
Code:
console.log(Δ.g.build(Δ.g.base.full, Δ.g.shaftBuilder(Δ.g.shaftType.alternative, Δ.g.shaftLength.tera), Δ.g.end.circleDashed, Δ.g.tail.wavy))
Result:
8════════════════════════════════════════════════════════════════════════════════════════════════════Ð~
Code:
console.log(Δ.g.build(Δ.g.base.half, Δ.g.shaftBuilder(Δ.g.shaftType.double, Δ.g.shaftLength.macro), Δ.g.end.pointy, Δ.g.tail.flat))
Result:
3=>-