Object containing the default primitives.
By convention, all components are functions in the form def primitive(area, color, params...): Unit
.
Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
Primitives.type
Members list
Value members
Inherited methods
Advanced operation to add a custom primitive to the list of render operations.
Advanced operation to add a custom primitive to the list of render operations.
Supports an arbitrary data value. It's up to the backend to interpret it as it sees fit. If the backend does not know how to interpret it, it can just render a colored rect.
Value parameters
- data
-
custom value to be interpreted by the backend.
Attributes
- Inherited from:
- Primitives
Applies the operations in a code block at the previous z-index.
Applies the operations in a code block at the previous z-index.
Attributes
- Inherited from:
- Primitives
Applies the operations in a code block at the next z-index.
Draws a rectangle filling a the specified area with a color.
Draws a block of text in the specified area with a color.
Draws a block of text in the specified area with a color.
Value parameters
- font
-
font definition
- horizontalAlignment
-
how the text should be aligned horizontally
- text
-
text to write
- verticalAlignment
-
how the text should be aligned vertically
Attributes
- Inherited from:
- Primitives