Project ↗ | Documentation ↗ | — | Tutorials ↗ | How To's ↗ | Explanations ↗ | References |
Entry ↗ | — | Sections ↘ | Permuted Sections ↘ | Names ↘ | Permuted Names ↘ | Strict ↘ | Implementations ↘ |
Documentation -- Reference Pages -- generator virtual drawing
Table Of Contents
Operators
- aktive image draw box
- aktive image draw box-rounded
- aktive image draw circle
- aktive image draw circles
- aktive image draw line
- aktive image draw lines
- aktive image draw parallelogram
- aktive image draw polyline
- aktive image draw rhombus
- aktive image draw triangle
Operators
↑ aktive image draw box
Syntax: aktive image draw box ?(param value)...? [→ definition]
Returns an image with the given dimensions and location, with a box drawn into it.
Beware. The location and size of the box are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a box located completely outside of the image domain.
The returned image is always single-band. It is grey-scale when anti-aliasing is active, and black/white if not.
See also aktive op draw box on and aktive image sdf box.
The box is axis-aligned, of width 2*ewidth+1
, height 2*eheight+1
, and placed at the specified center.
Parameter | Type | Default | Description |
---|---|---|---|
width | uint | Image width | |
height | uint | Image height | |
x | int | 0 | Image location, X coordinate |
y | int | 0 | Image location, Y coordinate |
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | double | 0 | Outline thickness. Draw filled if zero (Default). |
ewidth | double | 1 | Element width |
eheight | double | 1 | Element height |
center | fpoint | Element center |
Examples
aktive image draw box center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw box center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8 outlined 1.1
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw box center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8 antialiased 0
|
---|
![]() geometry(0 0 128 128 1) |
↑ aktive image draw box-rounded
Syntax: aktive image draw box-rounded ?(param value)...? [→ definition]
Returns an image with the given dimensions and location, with a box drawn into it.
Beware. The location and size of the box are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a box located completely outside of the image domain.
The returned image is always single-band. It is grey-scale when anti-aliasing is active, and black/white if not.
See also aktive op draw box-rounded on and aktive image sdf box-rounded.
The box is axis-aligned, of width 2*ewidth+1
, height 2*eheight+1
, with rounded corners per the radii, and placed at the specified center.
The radii default to 0, i.e. no rounded corners.
Parameter | Type | Default | Description |
---|---|---|---|
width | uint | Image width | |
height | uint | Image height | |
x | int | 0 | Image location, X coordinate |
y | int | 0 | Image location, Y coordinate |
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | double | 0 | Outline thickness. Draw filled if zero (Default). |
upleftradius | double | 0 | Radius of element at upper left corner |
uprightradius | double | 0 | Radius of element at upper right corner |
downleftradius | double | 0 | Radius of element at lower left corner |
downrightradius | double | 0 | Radius of element at lower right corner |
ewidth | double | 1 | Element width |
eheight | double | 1 | Element height |
center | fpoint | Element center |
Examples
aktive image draw box-rounded center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw box-rounded center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8 upleftradius 32.32 outlined 1.1
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw box-rounded center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8 upleftradius 32.32 antialiased 0
|
---|
![]() geometry(0 0 128 128 1) |
↑ aktive image draw circle
Syntax: aktive image draw circle ?(param value)...? [→ definition]
Returns an image with the given dimensions and location, with a circle drawn into it.
Beware. The location and size of the circle are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a circle located completely outside of the image domain.
The returned image is always single-band. It is grey-scale when anti-aliasing is active, and black/white if not.
See also aktive op draw circle on and aktive image sdf circle.
The circle has the radius
, and is placed at the specified center.
Parameter | Type | Default | Description |
---|---|---|---|
width | uint | Image width | |
height | uint | Image height | |
x | int | 0 | Image location, X coordinate |
y | int | 0 | Image location, Y coordinate |
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | double | 0 | Outline thickness. Draw filled if zero (Default). |
radius | double | 1 | Circle radius |
center | fpoint | Element center |
Examples
aktive image draw circle center {64.25 64.75} width 128 height 128 radius 32.5
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw circle center {64.25 64.75} width 128 height 128 radius 32.5 outlined 1.1
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw circle center {64.25 64.75} width 128 height 128 radius 32.5 antialiased 0
|
---|
![]() geometry(0 0 128 128 1) |
↑ aktive image draw circles
Syntax: aktive image draw circles ?(param value)...? [→ definition]
Returns an image with the given dimensions and location, with a set of circles drawn into it.
Beware. The location and size of the set of circles are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a set of circles located completely outside of the image domain.
The returned image is always single-band. It is grey-scale when anti-aliasing is active, and black/white if not.
See also aktive op draw circles on and aktive image sdf circles.
The circles all have the same radius
, and are placed at the specified centers.
Parameter | Type | Default | Description |
---|---|---|---|
width | uint | Image width | |
height | uint | Image height | |
x | int | 0 | Image location, X coordinate |
y | int | 0 | Image location, Y coordinate |
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | double | 0 | Outline thickness. Draw filled if zero (Default). |
radius | double | 1 | Circle radius |
centers | fpoint... | Circle centers |
Examples
aktive image draw circles width 128 height 128 radius 8 centers {10.25 10.75} {30.3 80.6} {80.1 30.9}
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw circles width 128 height 128 radius 8 outlined 1.1 centers {10.25 10.75} {30.3 80.6} {80.1 30.9}
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw circles width 128 height 128 radius 8 antialiased 0 centers {10.25 10.75} {30.3 80.6} {80.1 30.9}
|
---|
![]() geometry(0 0 128 128 1) |
↑ aktive image draw line
Syntax: aktive image draw line ?(param value)...? [→ definition]
Returns an image with the given dimensions and location, with a line drawn into it.
Beware. The location and size of the line are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a line located completely outside of the image domain.
The returned image is always single-band. It is grey-scale when anti-aliasing is active, and black/white if not.
See also aktive op draw line on and aktive image sdf line.
The line connects the two specified locations.
Parameter | Type | Default | Description |
---|---|---|---|
width | uint | Image width | |
height | uint | Image height | |
x | int | 0 | Image location, X coordinate |
y | int | 0 | Image location, Y coordinate |
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
strokewidth | double | 0 | Stroke width. Lines are 2*strokewidth+1 wide. |
from | fpoint | Starting location | |
to | fpoint | End location |
Examples
aktive image draw line width 128 height 128 from {10.1 10.9} to {30.3 80.6}
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw line width 128 height 128 from {10.1 10.9} to {30.3 80.6} strokewidth 1.1
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw line width 128 height 128 from {10.1 10.9} to {30.3 80.6} antialiased 0
|
---|
![]() geometry(0 0 128 128 1) |
↑ aktive image draw lines
Syntax: aktive image draw lines ?(param value)...? [→ definition]
Returns an image with the given dimensions and location, with a set of independent lines drawn into it.
Beware. The location and size of the set of independent lines are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a set of independent lines located completely outside of the image domain.
The returned image is always single-band. It is grey-scale when anti-aliasing is active, and black/white if not.
See also aktive op draw lines on and aktive image sdf lines.
Each line connects two locations.
Parameter | Type | Default | Description |
---|---|---|---|
width | uint | Image width | |
height | uint | Image height | |
x | int | 0 | Image location, X coordinate |
y | int | 0 | Image location, Y coordinate |
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
strokewidth | double | 0 | Stroke width. Lines are 2*strokewidth+1 wide. |
segments | str... | Line segments |
Examples
aktive image draw lines width 128 height 128 segments {{10.1 10.9} {30.3 80.6}} {{10.1 80.6} {30.3 10.9}}
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw lines width 128 height 128 strokewidth 1.1 segments {{10.1 10.9} {30.3 80.6}} {{10.1 80.6} {30.3 10.9}}
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw lines width 128 height 128 antialiased 0 segments {{10.1 10.9} {30.3 80.6}} {{10.1 80.6} {30.3 10.9}}
|
---|
![]() geometry(0 0 128 128 1) |
↑ aktive image draw parallelogram
Syntax: aktive image draw parallelogram ?(param value)...? [→ definition]
Returns an image with the given dimensions and location, with a parallelogram drawn into it.
Beware. The location and size of the parallelogram are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a parallelogram located completely outside of the image domain.
The returned image is always single-band. It is grey-scale when anti-aliasing is active, and black/white if not.
See also aktive op draw parallelogram on and aktive image sdf parallelogram.
The parallelogram is axis-aligned, of width 2*ewidth+1
, height 2*eheight+1
, skewed by eskew
, and placed at the specified center.
Parameter | Type | Default | Description |
---|---|---|---|
width | uint | Image width | |
height | uint | Image height | |
x | int | 0 | Image location, X coordinate |
y | int | 0 | Image location, Y coordinate |
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | double | 0 | Outline thickness. Draw filled if zero (Default). |
eskew | double | 1 | Element skew |
ewidth | double | 1 | Element width |
eheight | double | 1 | Element height |
center | fpoint | Element center |
Examples
aktive image draw parallelogram center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8 eskew 8.1
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw parallelogram center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8 eskew 8.1 outlined 1.1
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw parallelogram center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8 eskew 8.1 antialiased 0
|
---|
![]() geometry(0 0 128 128 1) |
↑ aktive image draw polyline
Syntax: aktive image draw polyline ?(param value)...? [→ definition]
Returns an image with the given dimensions and location, with a set of connected lines drawn into it.
Beware. The location and size of the set of connected lines are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a set of connected lines located completely outside of the image domain.
The returned image is always single-band. It is grey-scale when anti-aliasing is active, and black/white if not.
See also aktive op draw polyline on and aktive image sdf polyline.
The lines form a polyline through the specified points.
Parameter | Type | Default | Description |
---|---|---|---|
width | uint | Image width | |
height | uint | Image height | |
x | int | 0 | Image location, X coordinate |
y | int | 0 | Image location, Y coordinate |
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
strokewidth | double | 0 | Stroke width. Lines are 2*strokewidth+1 wide. |
points | fpoint... | Points of the poly-line |
Examples
aktive image draw polyline width 128 height 128 points {10.25 10.75} {30.3 80.6} {80.1 30.9}
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw polyline width 128 height 128 strokewidth 1.1 points {10.25 10.75} {30.3 80.6} {80.1 30.9}
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw polyline width 128 height 128 antialiased 0 points {10.25 10.75} {30.3 80.6} {80.1 30.9}
|
---|
![]() geometry(0 0 128 128 1) |
↑ aktive image draw rhombus
Syntax: aktive image draw rhombus ?(param value)...? [→ definition]
Returns an image with the given dimensions and location, with a rhombus drawn into it.
Beware. The location and size of the rhombus are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a rhombus located completely outside of the image domain.
The returned image is always single-band. It is grey-scale when anti-aliasing is active, and black/white if not.
See also aktive op draw rhombus on and aktive image sdf rhombus.
The rhombus is axis-aligned, of width 2*ewidth+1
, height 2*eheight+1
, and placed at the specified center.
Parameter | Type | Default | Description |
---|---|---|---|
width | uint | Image width | |
height | uint | Image height | |
x | int | 0 | Image location, X coordinate |
y | int | 0 | Image location, Y coordinate |
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | double | 0 | Outline thickness. Draw filled if zero (Default). |
ewidth | double | 1 | Element width |
eheight | double | 1 | Element height |
center | fpoint | Element center |
Examples
aktive image draw rhombus center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw rhombus center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8 outlined 1.1
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw rhombus center {64.25 64.75} width 128 height 128 ewidth 32.2 eheight 32.8 antialiased 0
|
---|
![]() geometry(0 0 128 128 1) |
↑ aktive image draw triangle
Syntax: aktive image draw triangle ?(param value)...? [→ definition]
Returns an image with the given dimensions and location, with a triangle drawn into it.
Beware. The location and size of the triangle are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a triangle located completely outside of the image domain.
The returned image is always single-band. It is grey-scale when anti-aliasing is active, and black/white if not.
See also aktive op draw triangle on and aktive image sdf triangle.
The triangle connects the points A, B, and C, in this order.
Parameter | Type | Default | Description |
---|---|---|---|
width | uint | Image width | |
height | uint | Image height | |
x | int | 0 | Image location, X coordinate |
y | int | 0 | Image location, Y coordinate |
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | double | 0 | Outline thickness. Draw filled if zero (Default). |
a | fpoint | Triangle point A | |
b | fpoint | Triangle point B | |
c | fpoint | Triangle point C |
Examples
aktive image draw triangle width 128 height 128 a {10.25 10.75} b {30.2 80.6} c {80.1 30.9}
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw triangle width 128 height 128 a {10.25 10.75} b {30.2 80.6} c {80.1 30.9} outlined 1.1
|
---|
![]() geometry(0 0 128 128 1) |
aktive image draw triangle width 128 height 128 a {10.25 10.75} b {30.2 80.6} c {80.1 30.9} antialiased 0
|
---|
![]() geometry(0 0 128 128 1) |