if (do_name() != 'Home') : ?>
Reference | beginpath()
endif ?>
Syntax | beginpath(x=None, y=None)
|
Description | Using the beginpath() and endpath() commands allows creating custom shapes. The two parameters of beginpath() set the location of the first point (origin) in the path. These parameters are optional. When not supplied, a starting location for the path should be given with the moveto() command. After calling the beginpath() command, a series of other path commands usually follow, for example moveto(), lineto(), or curveto(). Finally, the endpath() command draws the path to the screen. |
Tutorial | Paths
|
|
Example | | stroke(0.2)
beginpath(10, 10)
lineto(40, 10)
endpath() |
|
include("util/comment.php"); ?>