Difference between revisions of "SetDecoration Command"
From GeoGebra Manual
(typo) |
(add fill styles (from v530)) |
||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} | ||
;SetDecoration( <Object>, <Number> ) | ;SetDecoration( <Object>, <Number> ) | ||
− | :Changes the decoration of given object (see ''Style'' tab in object properties). The object must be angle or | + | :Changes the decoration of given object (see ''Style'' tab in object properties). The object must be angle, segment or a "fillable object", second argument is numeric code of the decoration / fill-style. For possible values see the table below. |
{| class=pretty | {| class=pretty | ||
Line 7: | Line 7: | ||
!Segment decoration | !Segment decoration | ||
!Angle decoration | !Angle decoration | ||
+ | !Fill-style | ||
+ | |- | ||
+ | |0 | ||
+ | |Remove decoration | ||
+ | |Remove decoration | ||
+ | |Solid fill | ||
|- | |- | ||
|1 | |1 | ||
|One tick | |One tick | ||
|Two arcs | |Two arcs | ||
+ | |Hatched | ||
|- | |- | ||
|2 | |2 | ||
|Two ticks | |Two ticks | ||
|Three arcs | |Three arcs | ||
+ | |Cross-hatched | ||
|- | |- | ||
|3 | |3 | ||
|Three ticks | |Three ticks | ||
|One tick | |One tick | ||
+ | |Chessboard | ||
|- | |- | ||
|4 | |4 | ||
|One arrow | |One arrow | ||
|Two ticks | |Two ticks | ||
+ | |Dotted | ||
|- | |- | ||
|5 | |5 | ||
|Two arrows | |Two arrows | ||
|Three ticks | |Three ticks | ||
+ | |Honeycomb | ||
|- | |- | ||
|6 | |6 | ||
|Three arrows | |Three arrows | ||
|Clockwise arrow | |Clockwise arrow | ||
+ | |Brick | ||
|- | |- | ||
|7 | |7 | ||
|(None) | |(None) | ||
|Anticlockwise arrow | |Anticlockwise arrow | ||
+ | |Weave pattern | ||
|} | |} |
Revision as of 13:21, 18 March 2019
- SetDecoration( <Object>, <Number> )
- Changes the decoration of given object (see Style tab in object properties). The object must be angle, segment or a "fillable object", second argument is numeric code of the decoration / fill-style. For possible values see the table below.
Value | Segment decoration | Angle decoration | Fill-style |
---|---|---|---|
0 | Remove decoration | Remove decoration | Solid fill |
1 | One tick | Two arcs | Hatched |
2 | Two ticks | Three arcs | Cross-hatched |
3 | Three ticks | One tick | Chessboard |
4 | One arrow | Two ticks | Dotted |
5 | Two arrows | Three ticks | Honeycomb |
6 | Three arrows | Clockwise arrow | Brick |
7 | (None) | Anticlockwise arrow | Weave pattern |