Next: Input language, Previous: About sketch, Up: Top [Contents][Index]
The sketch
input language will seem familiar to users of the
PSTricks
package for LaTeX. The following program draws a
triangular polygon pierced by a line.
polygon(0,0,1)(1,0,0)(0,1,0) line(-1,-1,-1)(2,2,2)
The coordinate system is a standard right-handed Cartesian one.
• Hello world | Simplest possible sketch program.
| |
• Drawing options | Controlling object appearance. | |
• Drawing a solid | Drawing an object with 3d appearance. | |
• Special objects | Laying TeX over, in, or under drawings. | |
• Object transforms | Rotate, translate, scale, and others. | |
• Repeated objects | Making transformed copies. | |
• Swept objects | Sweeping objects in space to make new shapes. |