Skip to main content
Version: Streamsheets 3.0

DRAW.BEZIER

Define a graphical bezier curve. The control points are created automatically.

Syntax

=DRAW.BEZIER(X, Y, Width, Height, [LineColor], [FillColor], [Angle], [PointRange], [Close])

Arguments

NameTypeDescription
XNumberX Coordinate in 1/100th mm
YNumberY Coordinate in 1/100th mm
WidthNumberWidth in 1/100th mm
HeightNumberHeight in 1/100th mm
LineColor (optional)ColorLine Color Value

Options:
"none": Invisible
"#FFFFFF": White
"#000000": Black
"#FF0000": Red
"#00FF00": Green
"#0000FF": Blue
"#FFFF00": Yellow
"#AAAAAA": Grey

Default value: "Color derived from theme."
FillColor (optional)ColorFill Color Value

Options:
"none": Invisible
"#FFFFFF": White
"#000000": Black
"#FF0000": Red
"#00FF00": Green
"#0000FF": Blue
"#FFFF00": Yellow
"#AAAAAA": Grey

Default value: "Color derived from theme."
Angle (optional)NumberAngle in radians.

Default value: 0
PointRange (optional)RangeCell Range with coordinates. A coordinate is defined by a fraction of the width and height of the bezier ranging from 0 to . 1 would place the coordinate at the bottom or right corner of the object. The range must have 2 columns. The left column contains the x coordinates and the right column the y coordinates. If the object was drawn using the mouse or one of the predefined objects was used, the given coordinates will be used, as long as no coordinates are defined using this parameter.
Close (optional)BooleanClose bezier curve by connecting the first and last point

Default value: TRUE

Return

TypeDescription
BooleanTRUE, if bezier curve could be created.

Hint

This function should not be used in a cell

Examples

FormulaResultComment
=DRAW.BEZIER(28171,7171,21616,12991)
TRUEDraw a bezier using the given coordinates.