Project ↗ | Documentation ↗ | — | Tutorials ↗ | How To's ↗ | Explanations ↗ | References |
Entry ↗ | — | Sections ↘ | Permuted Sections ↘ | Names ↘ | Permuted Names ↘ | Strict ↘ | Implementations ↘ |
Documentation -- Reference Pages -- transform drawing
Table Of Contents
Operators
- aktive op draw box-rounded on
- aktive op draw box on
- aktive op draw circle on
- aktive op draw circles on
- aktive op draw line on
- aktive op draw parallelogram on
- aktive op draw polyline on
- aktive op draw rhombus on
- aktive op draw triangle on
Operators
↑ aktive op draw box-rounded on
Syntax: aktive op draw box-rounded on background ?(param value)...? [→ definition]
Returns an image where a box is drawn on the input image.
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.
See also aktive image draw box-rounded 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.
Input | Description |
---|---|
background | The image to draw on, i.e. the background for the drawing. |
Parameter | Type | Default | Description |
---|---|---|---|
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | uint | 0 | Outline thickness. Draw filled if zero (Default). |
color | str | List of band values, color of the drawn box. Their number has to match the input's depth. | |
upleftradius | uint | 0 | Radius of element at upper left corner |
uprightradius | uint | 0 | Radius of element at upper right corner |
downleftradius | uint | 0 | Radius of element at lower left corner |
downrightradius | uint | 0 | Radius of element at lower right corner |
ewidth | uint | 1 | Element width |
eheight | uint | 1 | Element height |
center | point | Element center |
Examples
@1
|
aktive op draw box-rounded on @1 center {64 64} ewidth 32 eheight 32 upleftradius 32 outlined 1 color {1 0 0}
|
---|---|
![]() geometry(0 0 380 250 3) |
![]() geometry(0 0 380 250 3) |
↑ aktive op draw box on
Syntax: aktive op draw box on background ?(param value)...? [→ definition]
Returns an image where a box is drawn on the input image.
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.
See also aktive image draw box 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.
Input | Description |
---|---|
background | The image to draw on, i.e. the background for the drawing. |
Parameter | Type | Default | Description |
---|---|---|---|
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | uint | 0 | Outline thickness. Draw filled if zero (Default). |
color | str | List of band values, color of the drawn box. Their number has to match the input's depth. | |
ewidth | uint | 1 | Element width |
eheight | uint | 1 | Element height |
center | point | Element center |
Examples
@1
|
aktive op draw box on @1 center {64 64} ewidth 32 eheight 32 color {1 0 0} outlined 1
|
---|---|
![]() geometry(0 0 380 250 3) |
![]() geometry(0 0 380 250 3) |
↑ aktive op draw circle on
Syntax: aktive op draw circle on background ?(param value)...? [→ definition]
Returns an image where a circle is drawn on the input image.
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.
See also aktive image draw circle and aktive image sdf circle.
The circle has the radius
, and is placed at the specified center.
Input | Description |
---|---|
background | The image to draw on, i.e. the background for the drawing. |
Parameter | Type | Default | Description |
---|---|---|---|
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | uint | 0 | Outline thickness. Draw filled if zero (Default). |
color | str | List of band values, color of the drawn circle. Their number has to match the input's depth. | |
radius | uint | 1 | Circle radius |
center | point | Element center |
Examples
@1
|
aktive op draw circle on @1 center {64 64} radius 32 color {1 0 0} outlined 1
|
---|---|
![]() geometry(0 0 380 250 3) |
![]() geometry(0 0 380 250 3) |
↑ aktive op draw circles on
Syntax: aktive op draw circles on background ?(param value)...? [→ definition]
Returns an image where a set of circles is drawn on the input image.
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.
See also aktive image draw circles and aktive image sdf circles.
The circles all have the same radius
, and are placed at the specified centers.
Input | Description |
---|---|
background | The image to draw on, i.e. the background for the drawing. |
Parameter | Type | Default | Description |
---|---|---|---|
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | uint | 0 | Outline thickness. Draw filled if zero (Default). |
color | str | List of band values, color of the drawn set of circles. Their number has to match the input's depth. | |
radius | uint | 1 | Circle radius |
centers | point... | Circle centers |
Examples
@1
|
aktive op draw circles on @1 radius 8 color {1 0 0} outlined 1 centers {10 10} {30 80} {80 30}
|
---|---|
![]() geometry(0 0 380 250 3) |
![]() geometry(0 0 380 250 3) |
↑ aktive op draw line on
Syntax: aktive op draw line on background ?(param value)...? [→ definition]
Returns an image where a line is drawn on the input image.
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.
See also aktive image draw line and aktive image sdf line.
The line connects the two specified locations.
Input | Description |
---|---|
background | The image to draw on, i.e. the background for the drawing. |
Parameter | Type | Default | Description |
---|---|---|---|
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
strokewidth | uint | 0 | Stroke width. Lines are 2*strokewidth+1 wide. |
color | str | List of band values, color of the drawn line. Their number has to match the input's depth. | |
from | point | Starting location | |
to | point | End location |
Examples
@1
|
aktive op draw line on @1 from {10 10} to {30 80} color {1 0 0} strokewidth 1
|
---|---|
![]() geometry(0 0 380 250 3) |
![]() geometry(0 0 380 250 3) |
↑ aktive op draw parallelogram on
Syntax: aktive op draw parallelogram on background ?(param value)...? [→ definition]
Returns an image where a parallelogram is drawn on the input image.
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.
See also aktive image draw parallelogram 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.
Input | Description |
---|---|
background | The image to draw on, i.e. the background for the drawing. |
Parameter | Type | Default | Description |
---|---|---|---|
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | uint | 0 | Outline thickness. Draw filled if zero (Default). |
color | str | List of band values, color of the drawn parallelogram. Their number has to match the input's depth. | |
eskew | uint | 1 | Element skew |
ewidth | uint | 1 | Element width |
eheight | uint | 1 | Element height |
center | point | Element center |
Examples
@1
|
aktive op draw parallelogram on @1 center {64 64} ewidth 32 eheight 32 eskew 8 color {1 0 0} outlined 1
|
---|---|
![]() geometry(0 0 380 250 3) |
![]() geometry(0 0 380 250 3) |
↑ aktive op draw polyline on
Syntax: aktive op draw polyline on background ?(param value)...? [→ definition]
Returns an image where a set of lines is drawn on the input image.
Beware, the location and size of the set of lines are independent of image location and dimensions. The operator is perfectly fine computing the SDF of a set of lines located completely outside of the image domain.
See also aktive image draw polyline and aktive image sdf polyline.
The lines form a polyline through the specified points.
Input | Description |
---|---|
background | The image to draw on, i.e. the background for the drawing. |
Parameter | Type | Default | Description |
---|---|---|---|
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
strokewidth | uint | 0 | Stroke width. Lines are 2*strokewidth+1 wide. |
color | str | List of band values, color of the drawn set of lines. Their number has to match the input's depth. | |
points | point... | Points of the poly-line |
Examples
@1
|
aktive op draw polyline on @1 color {1 0 0} strokewidth 1 points {10 10} {30 80} {80 30}
|
---|---|
![]() geometry(0 0 380 250 3) |
![]() geometry(0 0 380 250 3) |
↑ aktive op draw rhombus on
Syntax: aktive op draw rhombus on background ?(param value)...? [→ definition]
Returns an image where a rhombus is drawn on the input image.
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.
See also aktive image draw rhombus 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.
Input | Description |
---|---|
background | The image to draw on, i.e. the background for the drawing. |
Parameter | Type | Default | Description |
---|---|---|---|
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | uint | 0 | Outline thickness. Draw filled if zero (Default). |
color | str | List of band values, color of the drawn rhombus. Their number has to match the input's depth. | |
ewidth | uint | 1 | Element width |
eheight | uint | 1 | Element height |
center | point | Element center |
Examples
@1
|
aktive op draw rhombus on @1 center {64 64} ewidth 32 eheight 32 outlined 1 color {1 0 0} outlined 1
|
---|---|
![]() geometry(0 0 380 250 3) |
![]() geometry(0 0 380 250 3) |
↑ aktive op draw triangle on
Syntax: aktive op draw triangle on background ?(param value)...? [→ definition]
Returns an image where a triangle is drawn on the input image.
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.
See also aktive image draw triangle and aktive image sdf triangle.
The triangle connects the points A, B, and C, in this order.
Input | Description |
---|---|
background | The image to draw on, i.e. the background for the drawing. |
Parameter | Type | Default | Description |
---|---|---|---|
antialiased | bool | 1 | Draw with antialiasing for smoother contours (Default) |
outlined | uint | 0 | Outline thickness. Draw filled if zero (Default). |
color | str | List of band values, color of the drawn triangle. Their number has to match the input's depth. | |
a | point | Triangle point A | |
b | point | Triangle point B | |
c | point | Triangle point C |
Examples
@1
|
aktive op draw triangle on @1 a {10 10} b {30 80} c {80 30} color {1 0 0} outlined 1
|
---|---|
![]() geometry(0 0 380 250 3) |
![]() geometry(0 0 380 250 3) |