Documentation
¶
Overview ¶
Package vgcairo provides a Cairo drawing backend for gonum.org/plot/vg.
Index ¶
- func ColorSurface(surface *cairo.Surface, x, y float64) color.Color
- type Canvas
- func (c Canvas) Context() *cairo.Context
- func (c Canvas) DrawImage(rect vg.Rectangle, img image.Image)
- func (c Canvas) Fill(path vg.Path)
- func (c Canvas) FillString(f font.Face, pt vg.Point, text string)
- func (c Canvas) Pop()
- func (c Canvas) Push()
- func (c Canvas) Rotate(rad float64)
- func (c Canvas) Scale(x, y float64)
- func (c Canvas) SetColor(clr color.Color)
- func (c Canvas) SetLineDash(pattern []vg.Length, offset vg.Length)
- func (c Canvas) SetLineWidth(l vg.Length)
- func (c Canvas) Stroke(path vg.Path)
- func (c Canvas) Translate(pt vg.Point)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorSurface ¶
ColorSurface is a type that implements all of color.Color's methods and wraps around a cairo.Surface. This is useful for SetColor.
Note that calling RGBA on the returned color will always return a transparent color.
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
Canvas implements the vg.Canvas interface, drawing to a cairo.Context.
func (Canvas) FillString ¶
FillString implements vg.Canvas.
func (Canvas) SetLineDash ¶
SetLineDash implements vg.Canvas.
func (Canvas) SetLineWidth ¶
SetLineWidth implements vg.Canvas.
Click to show internal directories.
Click to hide internal directories.