Using the Properties of the Canvas Object
Go Up to Overview of Graphics Programming
With the Canvas object, you can set the properties of a pen for drawing lines, a brush for filling shapes, a font for writing text, and an array of pixels to represent the image.