Convert GDL Commands into Scalable Vector Icons or PNGs
Origin at bottom left. Unit = pixel. Y-axis positive upwards.
Hex-Values: #000066 #ffa726
Standard: Stroke = black, Fill = transparent
LINE2 x1, y1, x2, y2, d, #strokeStraight line
CIRCLE2 x, y, r, d, #stroke, #fillKreis (x,y=centre, r=radius)
RECT2 x1, y1, x2, y2, d, #stroke, #fillRectangle (2 corner points)
POLY2 n, x1, y1, ..., xn, yn, d, #stroke, #fillPolygon with n Points
ELLIPSE2 x, y, rx, ry, rot, d, #stroke, #fillEllipse (rot=Rotation in degrees)
ARC2 x, y, r, a1, a2, d, #strokeArc lengths (a1/a2=angle in degrees)
ARROW x, y, rot, len, wid, d, #stroke, #fillarrowhead
STYLE "Font", iSets the text style. i=0 normal, 1 bold, 2 italic, 3 bold/italic.
TEXT2 x, y, h, i, "Text", #ColorText at position (x, y). h=height. i=alignment (1=left, 2=centre, 3=right).
ADD2 x, yMove origin
ROT2 aRotate coordinates aยฐ (CCW)
DEL nClose last n transformations (default 1)
DEFINE namestarts reusable code block
ENDDEFINEEnds code block
CALL nameInserts defined code block
FOR i = start TO end STEP valueLoop with counter i
NEXT iEnd of loop
var = expressionAssign numerical value. Supported: + โ * / ()
<!-- SVG code appears here -->