Skip to content
Gytis Daujotas edited this page Dec 5, 2015 · 1 revision

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:

Base

The 'base' of the glyph, under g.base:
full: 8
half: 3

Shaft

It's recommended to use shaftBuilder(shaft, length) for this. It takes two parameters:

Type

The character used to draw the shaft. Under g.shaftType: double (=) and alternative (═)

Length

The length of the shaft. Under g.shaftLength: nano (nothing), milli (2), kilo (5), mega (10), giga (20), tera (100)

End

The character to end the shaft with. Under g.end: circle (D), circleDashed (Ð), pointy (>), rounded ( ) ), flat ( ] )

Tail

This will be appended to the end of the glyph. Under g.tail: wavy (~), g.flat (-), g.double (=).

Examples

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=>-

Clone this wiki locally