First page Back Continue Last page Graphics
Time for a Brush
So far, we've only had a digital pen to draw lines and points.
Let's trade it in for a digital brush!
strokeWeight, strokeCap, and strokeJoin commands:
- strokeWeight( width ): sets the size of the brush head, in px
- strokeCap( mode ): sets how the line ending shape
- mode: ROUND (default), SQUARE, and PROJECT
- strokeJoin( mode ): sets the style of joints of connected lines
- mode: MITER (default), BEVEL, ROUND