You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/draw.adoc
+3-23Lines changed: 3 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -835,16 +835,17 @@ shape [<commands>]
835
835
836
836
*Description*
837
837
838
-
The `shape` keywords gives access to the Shape sub-dialect drawing commands. The specific features of this drawing dialect are:
838
+
The Shape dialect allows the creation of custom shapes (mirroring the way SVG paths work). The `shape` keywords gives access to the Shape sub-dialect drawing commands. The specific features of this drawing dialect are:
839
839
840
840
* the pen position for drawing can be moved independently of drawing operations.
841
841
* each drawing command starts from the current pen position.
842
-
* shapes are automatically closed (no need to draw the last stroke back to start position).
843
842
* the generated shapes can be fed to `fill-pen` for simple or sophisticated filling.
844
843
* coordinates can be absolute (like in Draw) or relative to the last pen position.
845
844
846
845
NOTE: All drawing commands are using absolute coordinates by default, using the lit-word version of the command switches the command to relative coordinates.
847
846
847
+
NOTE: There is no concept of "sub-shapes", the shape is considered as a unique shape even if parts of it are disjoined.
848
+
848
849
=== Move
849
850
850
851
*Syntax*
@@ -994,27 +995,6 @@ Draws a horizontal line from the current pen position.
994
995
995
996
Draws a vertical line from the current pen position.
996
997
997
-
=== Line-width
998
-
999
-
Same as the Draw dialect.
1000
-
1001
-
=== Line-join
1002
-
1003
-
Same as the Draw dialect.
1004
-
1005
-
=== Line-cap
1006
-
1007
-
Same as the Draw dialect.
1008
-
1009
-
=== Pen
1010
-
1011
-
Same as the Draw dialect.
1012
-
1013
-
=== Fill-pen
1014
-
1015
-
Same as the Draw dialect.
1016
-
1017
-
1018
998
== Default values
1019
999
1020
1000
When a new Draw session starts, the following default values are used:
0 commit comments