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

Method SetColor

vg/vg.go:46–46  ·  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. The initial color is black. If SetColor is called with a nil color then black is u

(color.Color)

Source from the content-addressed store, hash-verified

44 // The initial color is black.
45 // If SetColor is called with a nil color then black is used.
46 SetColor(color.Color)
47
48 // Rotate applies a rotation transform to the context.
49 // The parameter is specified in radians.

Callers 15

DrawMethod · 0.65
ExampleField_colorsFunction · 0.65
plotVectorizedMethod · 0.65
PlotMethod · 0.65
PlotMethod · 0.65
PlotMethod · 0.65
naivePlotMethod · 0.65
InitializeFunction · 0.65
SetColorMethod · 0.65
ExampleFunction · 0.65
SetColorMethod · 0.65
ApplyToMethod · 0.65

Implementers 7

teeCanvasvg/tee.go
Canvasvg/vgeps/vgeps.go
Canvasvg/vgtex/canvas.go
Canvasvg/vgimg/vgimg.go
Canvasvg/vgpdf/vgpdf.go
Canvasvg/recorder/recorder.go
Canvasvg/vgsvg/vgsvg.go

Calls

no outgoing calls

Tested by 2

ExampleField_colorsFunction · 0.52
ExampleFunction · 0.52