diff options
Diffstat (limited to 'html/en/func/polygon.html')
-rw-r--r-- | html/en/func/polygon.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/html/en/func/polygon.html b/html/en/func/polygon.html index 4e18664..4ab5834 100644 --- a/html/en/func/polygon.html +++ b/html/en/func/polygon.html @@ -6,6 +6,11 @@ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Polygons</title> <link rel="stylesheet" type="text/css" href="../../style.css"> +<style type="text/css"> +.style1 { + font-family: Courier; +} +</style> </head> <body> @@ -82,6 +87,31 @@ canvas:End() [in Lua]</pre> <p>Ends the polygon's definition and draws it.</p> +<p> </p> +"<span class="style1"><strong>PATH</strong></span>": allows to create + a complex path using CD primitives and then fill, stroke or clip using the + new path. Must be used with the following parameters:<ul> + <li>"BEGIN" - creates a new empty path, must be the first call</li> + <li>cdCanvasPixel, cdCanvasLine, cdCanvasArc - add elements to the path + instead of drawing to the canvas</li> + <li>"FILL" - closes the path, and fills it with the current fill attributes, + then the path is discarded</li> + <li>"STROKE" - strokes the path with the current line attributes, then the + path is discarded</li> + <li>"CLOSESTROKE" - closes the path, and strokes it with the current line + attributes, then the path is discarded</li> + <li>"FILLSTROKE" - closes the path, and fills it with the current fill + attributes, strokes the path with the current line attributes, then the path + is discarded</li> + <li>"CLIP" - closes the path, and use it as a clipping area to be + intersected with the current clipping area, then the path is discarded</li> + <li>"NULL" - discards the path and ends the process without any output.</li> + <li>ARC - If there is a current point an additional straight line is drawn + from the current point to the starting point of the arc. The endpoint of the + arc becomes the new current point. </li> + </ul> + + </body> </html> |