SetColor sets the current drawing color. Note that fill color and stroke color are the same, so if you want different fill and stroke colors then you must set a color, draw fills, set a new color and then draw lines.
(c color.Color)
| 49 | // and stroke colors then you must set a color, |
| 50 | // draw fills, set a new color and then draw lines. |
| 51 | func (tee teeCanvas) SetColor(c color.Color) { |
| 52 | for _, canvas := range tee.cs { |
| 53 | canvas.SetColor(c) |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // Rotate applies a rotation transform to the context. |
| 58 | // The parameter is specified in radians. |