Divooka Reference

Simple Shape Images

23 nodes

On this page 23

Draw Circle Shape

Function

Draws a circle with the specified radius.

Signature
DrawCircleShape -> Pixel Image
    radius: Integer
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    antialias: Truth
PixelImage DrawCircleShape(
    int radius,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    bool antialias = true)

Parameters

nametypedefaultdescription
radiusInteger—The radius of the circle.
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Cone Geometry

Function

This node carries no documentation.

Signature
DrawConeGeometry -> Pixel Image
    width: Number
    height: Number
    depth: Number
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    fillColor: Optional Color
    antialias: Truth
PixelImage DrawConeGeometry(
    double width = 512,
    double height = 640,
    double depth = 220,
    ColorElement? strokeColor,
    float strokeWidth = 3f,
    ColorElement? backgroundColor,
    float padding = 32f,
    ColorElement? fillColor,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthNumber512
heightNumber640
depthNumber220
strokeColorOptional Color—
strokeWidthLow Accuracy Number3
backgroundColorOptional Color—
paddingLow Accuracy Number32
fillColorOptional Color—
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Cube Geometry

Function

This node carries no documentation.

Signature
DrawCubeGeometry -> Pixel Image
    size: Number
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    fillFaces: Truth
    faceFillColor: Optional Color
    antialias: Truth
PixelImage DrawCubeGeometry(
    double size = 512,
    ColorElement? strokeColor,
    float strokeWidth = 3f,
    ColorElement? backgroundColor,
    float padding = 32f,
    bool fillFaces = false,
    ColorElement? faceFillColor,
    bool antialias = true)

Parameters

nametypedefaultdescription
sizeNumber512
strokeColorOptional Color—
strokeWidthLow Accuracy Number3
backgroundColorOptional Color—
paddingLow Accuracy Number32
fillFacesTruthFalse
faceFillColorOptional Color—
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Cuboid Geometry

Function

This node carries no documentation.

Signature
DrawCuboidGeometry -> Pixel Image
    width: Number
    height: Number
    depth: Number
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    fillFaces: Truth
    faceFillColor: Optional Color
    antialias: Truth
PixelImage DrawCuboidGeometry(
    double width = 640,
    double height = 420,
    double depth = 260,
    ColorElement? strokeColor,
    float strokeWidth = 3f,
    ColorElement? backgroundColor,
    float padding = 32f,
    bool fillFaces = false,
    ColorElement? faceFillColor,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthNumber640
heightNumber420
depthNumber260
strokeColorOptional Color—
strokeWidthLow Accuracy Number3
backgroundColorOptional Color—
paddingLow Accuracy Number32
fillFacesTruthFalse
faceFillColorOptional Color—
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Curves

Function

Draws (closed) curves/polygons.

Signature
DrawCurves -> Pixel Image
    shapes: GeometryDrawShapesCollection
    outline: Color
    fill: Color
    background: Color
    drawFill: Truth
    outlineThickness: Integer
    width: Integer
    height: Integer
PixelImage DrawCurves(
    GeometryDrawShapesCollection shapes,
    ColorElement outline,
    ColorElement fill,
    ColorElement background,
    bool drawFill,
    int outlineThickness = 3,
    int width = 512,
    int height = 512)

Parameters

nametypedefaultdescription
shapesGeometryDrawShapesCollection—
outlineColor—
fillColor—
backgroundColor—
drawFillTruth—
outlineThicknessInteger3
widthInteger512How many pixels wide the picture is; the frame the shapes were drawn in covers the whole of it.
heightInteger512How many pixels tall the picture is.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Cylinder Geometry

Function

This node carries no documentation.

Signature
DrawCylinderGeometry -> Pixel Image
    width: Number
    height: Number
    depth: Number
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    fillColor: Optional Color
    antialias: Truth
PixelImage DrawCylinderGeometry(
    double width = 512,
    double height = 640,
    double depth = 220,
    ColorElement? strokeColor,
    float strokeWidth = 3f,
    ColorElement? backgroundColor,
    float padding = 32f,
    ColorElement? fillColor,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthNumber512
heightNumber640
depthNumber220
strokeColorOptional Color—
strokeWidthLow Accuracy Number3
backgroundColorOptional Color—
paddingLow Accuracy Number32
fillColorOptional Color—
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Distance Fields

Function

Draws shapes filled as distance fields.

Signature
DrawDistanceFields -> Pixel Image
    shapes: GeometryDrawShapesCollection
    positive: Color
    negative: Color
    direction: DistanceFieldDirection
    falloff: DistanceFieldFalloffType
    falloffDistance: Integer
    width: Integer
    height: Integer
PixelImage DrawDistanceFields(
    GeometryDrawShapesCollection shapes,
    ColorElement positive,
    ColorElement negative,
    DistanceFieldDirection direction,
    DistanceFieldFalloffType falloff,
    int falloffDistance = 15,
    int width = 512,
    int height = 512)

Parameters

nametypedefaultdescription
shapesGeometryDrawShapesCollection—
positiveColor—
negativeColor—
directionDistanceFieldDirection—
falloffDistanceFieldFalloffType—
falloffDistanceInteger15How far the field falls off, in the picture's pixels.
widthInteger512How many pixels wide the picture is; the frame the shapes were drawn in covers the whole of it.
heightInteger512How many pixels tall the picture is.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Ellipse Shape

Function

Draws an ellipse within the specified width and height.

Signature
DrawEllipseShape -> Pixel Image
    width: Integer
    height: Integer
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawEllipseShape(
    int width,
    int height,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float rotationDegrees = 0f,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthInteger—
heightInteger—
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Equilateral Triangle Shape

Function

Draws an equilateral triangle within the specified dimensions and optionally labels edges and angles.

Signature
DrawEquilateralTriangleShape -> Pixel Image
    width: Integer
    height: Integer
    leftOrRight: Truth
    showEdgeNames: Truth
    showAngleSymbols: Truth
    vertexNames: Text
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    labelFontSize: Integer
    labelColor: Optional Color
    antialias: Truth
PixelImage DrawEquilateralTriangleShape(
    int width,
    int height,
    bool leftOrRight = true,
    bool showEdgeNames = false,
    bool showAngleSymbols = false,
    string vertexNames = "ABC",
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float rotationDegrees = 0f,
    int labelFontSize = 14,
    ColorElement? labelColor,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthInteger—The width of the drawing area.
heightInteger—The height of the drawing area.
leftOrRightTruthTrueIf true, the triangle is left-aligned; if false, it is right-aligned.
showEdgeNamesTruthFalseIf set to true, labels the vertices with letters.
showAngleSymbolsTruthFalseIf set to true, labels the angles with their measures.
vertexNamesTextABC
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
rotationDegreesLow Accuracy Number0
labelFontSizeInteger14
labelColorOptional Color—
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Hexagon Shape

Function

Overload 1 of 2

Signature
DrawHexagonShape -> Pixel Image
    radius: Number
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    startAngleDegrees: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawHexagonShape(
    double radius,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float startAngleDegrees = -90f,
    float rotationDegrees = 0f,
    bool antialias = true)

Draws a regular hexagon inscribed in a circle with the specified radius.

Parameters

nametypedefaultdescription
radiusNumber—The radius of the circumscribed circle.
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
startAngleDegreesLow Accuracy Number-90
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image

Overload 2 of 2

Signature
DrawHexagonShape -> Pixel Image
    width: Integer
    height: Integer
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    startAngleDegrees: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawHexagonShape(
    int width,
    int height,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float startAngleDegrees = -90f,
    float rotationDegrees = 0f,
    bool antialias = true)

Draws a regular hexagon that fits within the specified width and height.

Parameters

nametypedefaultdescription
widthInteger—The width of the drawing area.
heightInteger—The height of the drawing area.
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
startAngleDegreesLow Accuracy Number-90
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Line Shape

Function

Draws a line segment.

Signature
DrawLineShape -> Pixel Image
    width: Integer
    height: Integer
    x1: Low Accuracy Number
    y1: Low Accuracy Number
    x2: Low Accuracy Number
    y2: Low Accuracy Number
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    antialias: Truth
    strokeCap: SKStrokeCap
PixelImage DrawLineShape(
    int width,
    int height,
    float x1,
    float y1,
    float x2,
    float y2,
    ColorElement? strokeColor,
    float strokeWidth = 2f,
    ColorElement? backgroundColor,
    bool antialias = true,
    SKStrokeCap strokeCap = SKStrokeCap.Round)

Parameters

nametypedefaultdescription
widthInteger—
heightInteger—
x1Low Accuracy Number—
y1Low Accuracy Number—
x2Low Accuracy Number—
y2Low Accuracy Number—
strokeColorOptional Color—
strokeWidthLow Accuracy Number2
backgroundColorOptional Color—
antialiasTruthTrue
strokeCapSKStrokeCapRound

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Oval Shape

Function

Draws an oval with the specified major and minor radii.

Signature
DrawOvalShape -> Pixel Image
    majorRadius: Integer
    minorRadius: Integer
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawOvalShape(
    int majorRadius,
    int minorRadius,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float rotationDegrees = 0f,
    bool antialias = true)

Parameters

nametypedefaultdescription
majorRadiusInteger—The major radius (half of the width) of the oval.
minorRadiusInteger—The minor radius (half of the height) of the oval.
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Pentagon Shape

Function

Overload 1 of 2

Signature
DrawPentagonShape -> Pixel Image
    radius: Number
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    startAngleDegrees: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawPentagonShape(
    double radius,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float startAngleDegrees = -90f,
    float rotationDegrees = 0f,
    bool antialias = true)

Draws a regular pentagon inscribed in a circle with the specified radius.

Parameters

nametypedefaultdescription
radiusNumber—The radius of the circumscribed circle.
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
startAngleDegreesLow Accuracy Number-90
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image

Overload 2 of 2

Signature
DrawPentagonShape -> Pixel Image
    width: Integer
    height: Integer
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    startAngleDegrees: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawPentagonShape(
    int width,
    int height,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float startAngleDegrees = -90f,
    float rotationDegrees = 0f,
    bool antialias = true)

Draws a regular pentagon that fits within the specified width and height.

Parameters

nametypedefaultdescription
widthInteger—The width of the drawing area.
heightInteger—The height of the drawing area.
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
startAngleDegreesLow Accuracy Number-90
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Polygon Shape

Function

Draws a regular polygon with the specified number of sides inscribed within the given width and height.

Signature
DrawPolygonShape -> Pixel Image
    width: Integer
    height: Integer
    sides: Integer
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    startAngleDegrees: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    fitMode: Polygon Fit Mode
    antialias: Truth
PixelImage DrawPolygonShape(
    int width,
    int height,
    int sides,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float startAngleDegrees = -90f,
    float rotationDegrees = 0f,
    SimpleShapeImages.PolygonFitMode fitMode = PolygonFitMode.FitWidthAndHeight,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthInteger—The width of the drawing area.
heightInteger—The height of the drawing area.
sidesInteger—The number of sides of the polygon (minimum 3).
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
startAngleDegreesLow Accuracy Number-90
rotationDegreesLow Accuracy Number0
fitModePolygon Fit ModeFit width and height
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Pyramid Geometry

Function

This node carries no documentation.

Signature
DrawPyramidGeometry -> Pixel Image
    width: Number
    height: Number
    depth: Number
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    fillFaces: Truth
    faceFillColor: Optional Color
    antialias: Truth
PixelImage DrawPyramidGeometry(
    double width = 640,
    double height = 500,
    double depth = 320,
    ColorElement? strokeColor,
    float strokeWidth = 3f,
    ColorElement? backgroundColor,
    float padding = 32f,
    bool fillFaces = false,
    ColorElement? faceFillColor,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthNumber640
heightNumber500
depthNumber320
strokeColorOptional Color—
strokeWidthLow Accuracy Number3
backgroundColorOptional Color—
paddingLow Accuracy Number32
fillFacesTruthFalse
faceFillColorOptional Color—
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Quadrilateral Shape

Function

Draws a quadrilateral with the specified width, height, and slanted angle.

Signature
DrawQuadrilateralShape -> Pixel Image
    width: Integer
    height: Integer
    angleInDegrees: Number
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawQuadrilateralShape(
    int width,
    int height,
    double angleInDegrees = 12,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float rotationDegrees = 0f,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthInteger—The width of the drawing area.
heightInteger—The height of the drawing area.
angleInDegreesNumber12The angle in degrees to slant one side.
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Rectangle Shape

Function

Draws a rectangle with the specified width and height.

Signature
DrawRectangleShape -> Pixel Image
    width: Integer
    height: Integer
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    cornerRadius: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawRectangleShape(
    int width,
    int height,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float cornerRadius = 0f,
    float rotationDegrees = 0f,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthInteger—The width of the rectangle.
heightInteger—The height of the rectangle.
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
cornerRadiusLow Accuracy Number0
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Right Triangle Shape

Function

Draws a right triangle with the specified dimensions and optional edge and angle labels.

Overload 1 of 2

Signature
DrawRightTriangleShape -> Pixel Image
    width: Integer
    height: Integer
    rightAngleCorner: Right Triangle Corner
    showEdgeNames: Truth
    showAngleSymbols: Truth
    vertexNames: Text
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    labelFontSize: Integer
    labelColor: Optional Color
    antialias: Truth
PixelImage DrawRightTriangleShape(
    int width,
    int height,
    SimpleShapeImages.RightTriangleCorner rightAngleCorner = RightTriangleCorner.BottomLeft,
    bool showEdgeNames = false,
    bool showAngleSymbols = false,
    string vertexNames = "ABC",
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float rotationDegrees = 0f,
    int labelFontSize = 14,
    ColorElement? labelColor,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthInteger—The width of the drawing area.
heightInteger—The height of the drawing area.
rightAngleCornerRight Triangle CornerBottom leftThe corner where the right angle is placed.
showEdgeNamesTruthFalseIf set to true, labels the vertices with letters.
showAngleSymbolsTruthFalseIf set to true, labels the right angle with its measure.
vertexNamesTextABC
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
rotationDegreesLow Accuracy Number0
labelFontSizeInteger14
labelColorOptional Color—
antialiasTruthTrue

Returns

resultPixel Image

Overload 2 of 2

Signature
DrawRightTriangleShape -> Pixel Image
    width: Integer
    height: Integer
    leftOrRight: Truth
    showEdgeNames: Truth
    showAngleSymbols: Truth
PixelImage DrawRightTriangleShape(
    int width,
    int height,
    bool leftOrRight,
    bool showEdgeNames,
    bool showAngleSymbols)

Parameters

nametypedefaultdescription
widthInteger—The width of the drawing area.
heightInteger—The height of the drawing area.
leftOrRightTruth—If true, the right angle is at the left side; if false, it is at the right side.
showEdgeNamesTruth—If set to true, labels the vertices with letters.
showAngleSymbolsTruth—If set to true, labels the right angle with its measure.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Sphere Geometry

Function

Draw a lit 3D sphere.

Signature
DrawSphereGeometry -> Pixel Image
    width: Number
    height: Number
    radius: Number
PixelImage DrawSphereGeometry(
    double width = 1024,
    double height = 1024,
    double radius = 1)

Parameters

nametypedefaultdescription
widthNumber1024Width of image
heightNumber1024Height of image
radiusNumber1Radius of sphere in 3D space.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Square Shape

Function

Draws a square with the specified size.

Signature
DrawSquareShape -> Pixel Image
    size: Integer
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    cornerRadius: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawSquareShape(
    int size,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float cornerRadius = 0f,
    float rotationDegrees = 0f,
    bool antialias = true)

Parameters

nametypedefaultdescription
sizeInteger—The length of each side of the square.
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
cornerRadiusLow Accuracy Number0
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Star Shape

Function

Draws a star polygon.

Signature
DrawStarShape -> Pixel Image
    width: Integer
    height: Integer
    points: Integer
    innerRadiusRatio: Low Accuracy Number
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    startAngleDegrees: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawStarShape(
    int width,
    int height,
    int points = 5,
    float innerRadiusRatio = 0.45f,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float startAngleDegrees = -90f,
    float rotationDegrees = 0f,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthInteger—
heightInteger—
pointsInteger5
innerRadiusRatioLow Accuracy Number0.45
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
startAngleDegreesLow Accuracy Number-90
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Text

Function

Handles both single line and multi line

Signature
DrawText -> Pixel Image
    text: Text
    padding: Integer
    fontSize: Integer
    fontFamily: Text
    color: Optional Color
    textAlign: SKTextAlign
    background: Optional Color
    lineSpacing: Low Accuracy Number
    semibold: Truth
    italic: Truth
    antialias: Truth
PixelImage DrawText(
    string text,
    int padding = 10,
    int fontSize = 46,
    string fontFamily = "Verdana",
    ColorElement? color,
    SKTextAlign textAlign = SKTextAlign.Center,
    ColorElement? background,
    float lineSpacing = 1.15f,
    bool semibold = true,
    bool italic = true,
    bool antialias = true)

Parameters

nametypedefaultdescription
textText—
paddingInteger10
fontSizeInteger46
fontFamilyTextVerdana
colorOptional Color—
textAlignSKTextAlignCenter
backgroundOptional Color—
lineSpacingLow Accuracy Number1.15
semiboldTruthTrue
italicTruthTrue
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing

Draw Triangle Shape

Function

Draws a triangle with the specified width and height.

Signature
DrawTriangleShape -> Pixel Image
    width: Integer
    height: Integer
    direction: Triangle Direction
    fillColor: Optional Color
    strokeColor: Optional Color
    strokeWidth: Low Accuracy Number
    backgroundColor: Optional Color
    padding: Low Accuracy Number
    rotationDegrees: Low Accuracy Number
    antialias: Truth
PixelImage DrawTriangleShape(
    int width,
    int height,
    SimpleShapeImages.TriangleDirection direction = TriangleDirection.Up,
    ColorElement? fillColor,
    ColorElement? strokeColor,
    float strokeWidth = 0f,
    ColorElement? backgroundColor,
    float padding = 0f,
    float rotationDegrees = 0f,
    bool antialias = true)

Parameters

nametypedefaultdescription
widthInteger—The width of the drawing area.
heightInteger—The height of the drawing area.
directionTriangle DirectionUp
fillColorOptional Color—
strokeColorOptional Color—
strokeWidthLow Accuracy Number0
backgroundColorOptional Color—
paddingLow Accuracy Number0
rotationDegreesLow Accuracy Number0
antialiasTruthTrue

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Simple Shape Images
Package
Image Processing