Drawing State
In this chapter you will learn:
What is drawing state
Drawing operations are configured by the drawing state. The following code uses the lineWidth property.
The following table shows the basic drawing state properties.
Name | Description | Default |
---|---|---|
fillStyle | the style used for filled shapes | black |
lineJoin | the style used when lines meet in a shape | miter |
lineWidth | the width of lines | 1.0 |
strokeStyle | Gets or sets the style used for lines | black |
Next chapter...
What you will learn in the next chapter:
Home » Javascript Tutorial » Canvas