MCPcopy Index your code
hub / github.com/gonum/plot / SetColor

Method SetColor

vg/tee.go:51–55  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

49// and stroke colors then you must set a color,
50// draw fills, set a new color and then draw lines.
51func (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.

Callers

nothing calls this directly

Calls 1

SetColorMethod · 0.65

Tested by

no test coverage detected