AddArc

AddArc ( left ;​ top ;​ width ;​ height ;​ startAngle ;​ arcAngle ;​ lineStroke ;​ lineColor ;​ lineColorVariant ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
left num -inf..+inf (required)
top num -inf..+inf (required)
width num 0..inf (required)
height num 0..inf (required)
startAngle num -360..+360 0 Dimension:[deg]
arcAngle num -360..+360 90 Dimension:[deg]
lineStroke num[] 0..1000 1 Dimension:[pt]
lineColor rgba 0..255 black
lineColorVariant int -1..128 solid
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Examples

AddArc(50;​50;​250;​150)

AddArc(50;​50;​250;​150;​180;​180;​2)

AddArc(50;​50;​250;​150;​180;​180;​3 10 5;​violet)

Description

The AddArc() function makes it possible to create oval arcs whose stroke (thickness, dash pattern), color and shadow can be varied. The start and arc angles are to be entered within a range of ±360 degrees; startAngle =​ 0 degrees is at the top (12 o'clock), startAngle =​ 90 degrees is on the right (3 o'clock) and startAngle =​ –90 degrees is on the left (9 o'clock). If the arc angle is positive, the arc is drawn clockwise; if the arc angle is negative, the arc is drawn counter-clockwise.

ADD_ARC_01
1

OpenDrawing(70;​70)

2

AddArc(10;​10;​100;​100;​0;​-90;​3.5;​steelBlue)

3

CloseDrawing()

ADD_ARC_01
ADD_ARC_02
1

OpenDrawing(100;​100)

2

AddArc(10;​10;​80;​80;​90;​270;​10 3 3;​steelBlue)

3

CloseDrawing()

ADD_ARC_02
ADD_ARC_03
1

OpenDrawing(100;​60)

2

AddArc(10;​10;​80;​80;​-90;​180;​3;​steelBlue;​;​0 0 3;​lime)

3

CloseDrawing()

ADD_ARC_03
Scroll to Top