Karo Graph
Symbol Editor Help
Customizable Symbols
Every document has 50 customizable symbols. By pressing the Symbol Edit
button, the symbol editor opens.
When selecting a symbol from the left, the editor shows a large preview of it on the right including all controls to customize that symbol.
- The
Name
textfield contains the name of the symbol. - The
Code
textfield contains the sequential drawing commands. See below. - The
ASCII
textfield denotes the character this symbol will be replaced with when exporting to TXT. - When the
Invert Black
checkbox is checked, the symbol uses white instead of black as foreground color when black is the currently selected color. See below. - When the
Large
checkbox is checked, the symbol is only drawn within every second gridpoint.
Drawing Code
The drawing code lets you define how symbols are drawn. The drawing commands each use one code line are executed sequenctially from top to bottom.
The coordinate system is a right handed system with positive x to the right and positive y to the top. One unit is the 18th part of a grid square (as defined in the Canvas Settings).
The possible drawing commands are the following:
Line startX startY endX endY lineWidth strokeColor Rect top right bottom left lineWidth strokeColor fillColor Circle centerX centerY radius startAngle endAngle lineWidth strokeColor fillColor Triangle pos1X pos1Y pos2X pos2Y pos3X pos3Y lineWidth strokeColor fillColor
- Line: Draws a line from coordinates
(startX, startY)
to(endX, endY)
with the givenlineWidth
. - Rect: Draws a rectangle with boundary coordinates
(top, right, bottom, left)
with the givenlineWidth
. - Circle: Draws a circle with center coordinates
(centerX, centerY)
with the givenradius
. ThestartAngle
andendAngle
are given in degrees and denote the angles within which the circle will be drawn with the givenlineWidth
. - Triangle: Draws a triangle with the three coordinates
(pos1X, pos1Y)
,(pos2X, pos2Y)
and(pos3X, pos3Y)
with the givenlineWidth
.
Drawing Colors
The values for strokeColor and fillColor can be:
0
-49
Specific color (see image on the right or for more detailed information, see Colors)no
Transparentfg
Foreground color. Denotes the currently selected color while drawing. When the symbol has theInvert Black
checkbox checked, the fg color turns to white (color id8
) when the currently selected color is black (color id0
).
If the lineWidth
is zero or strokeColor
is transparent, no stroke line will be drawn.