Previous | Next | ||
Broken lines with many points
|
||
Home ▸ Documentation ▸ Smile ▸ The graphic library ▸ Samples ▸ Broken lines with many points | ||
|
The sample script below shows how to use LineTo with a list of points, which is faster than point after point Also you see how to use SetTransformation to shift the origin of the drawing: here we take the center of the page as the origin of the coordinates. (The result on your machine will be different from the illustration. Try changing npts and resizing the window with the ⌘ key pressed.) |
Import script |
Version française | ||
Copyright ©2008 Paris, Satimage |