Kind: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Created page with "A '''kind''' is a type of ZZT-OOP argument that refers to a type of element. It consists of an element name, optionally prefixed by a color; for example, <code>red solid</code> refers to a red solid, while <code>normal</code> refers to normals of any color.")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
A '''kind''' is a type of ZZT-OOP argument that refers to a type of [[element]]. It consists of an element name, optionally prefixed by a color; for example, <code>red solid</code> refers to a red [[solid]], while <code>normal</code> refers to [[normal|normals]] of any color.
A '''kind''' is a type of ZZT-OOP argument that refers to a type of [[element]]. It consists of an element name, optionally prefixed by a color; for example, <code>red solid</code> refers to a red [[solid]], while <code>normal</code> refers to [[normal|normals]] of any color.
Only seven colors are supported, matching the seven colors exposed by the [[built-in editor]]: '''blue''', '''green''', '''cyan''', '''red''', '''purple''', '''yellow''' and '''white'''. The only way to place additional kinds of colors using ZZT-OOP is to rely on [[Colors accessible from ZZT|the default colors of other built-in elements]].
== Quirks ==
* An empty string refers to the first [[element]] in the engine without a name, which happens to be the [[board edge]],

Latest revision as of 14:40, 24 December 2025

A kind is a type of ZZT-OOP argument that refers to a type of element. It consists of an element name, optionally prefixed by a color; for example, red solid refers to a red solid, while normal refers to normals of any color.

Only seven colors are supported, matching the seven colors exposed by the built-in editor: blue, green, cyan, red, purple, yellow and white. The only way to place additional kinds of colors using ZZT-OOP is to rely on the default colors of other built-in elements.

Quirks

  • An empty string refers to the first element in the engine without a name, which happens to be the board edge,