Versions in this module Expand all Collapse all v0 v0.0.2 Mar 5, 2022 v0.0.1 Mar 5, 2022 Changes in this version + const PosBottom + const PosCenter + const PosLeft + const PosRight + const PosTop + const XCenter + const XLeft + const XRight + const YBottom + const YCenter + const YTop + func Formats() []string + func NewFormattedCanvas(w, h vg.Length, format string) (vg.CanvasWriterTo, error) + func RegisterFormat(name string, fn func(w, h vg.Length) vg.CanvasWriterTo) + type BoxGlyph struct + func (BoxGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) + type Canvas struct + func Crop(c Canvas, left, right, bottom, top vg.Length) Canvas + func New(c vg.CanvasSizer) Canvas + func NewCanvas(c vg.Canvas, w, h vg.Length) Canvas + func (c *Canvas) Center() vg.Point + func (c *Canvas) ClipLinesX(lines ...[]vg.Point) (clipped [][]vg.Point) + func (c *Canvas) ClipLinesXY(lines ...[]vg.Point) [][]vg.Point + func (c *Canvas) ClipLinesY(lines ...[]vg.Point) (clipped [][]vg.Point) + func (c *Canvas) ClipPolygonX(pts []vg.Point) []vg.Point + func (c *Canvas) ClipPolygonXY(pts []vg.Point) []vg.Point + func (c *Canvas) ClipPolygonY(pts []vg.Point) []vg.Point + func (c *Canvas) Contains(p vg.Point) bool + func (c *Canvas) ContainsX(x vg.Length) bool + func (c *Canvas) ContainsY(y vg.Length) bool + func (c *Canvas) DrawGlyph(sty GlyphStyle, pt vg.Point) + func (c *Canvas) DrawGlyphNoClip(sty GlyphStyle, pt vg.Point) + func (c *Canvas) FillPolygon(clr color.Color, pts []vg.Point) + func (c *Canvas) FillText(sty TextStyle, pt vg.Point, txt string) + func (c *Canvas) SetLineStyle(sty LineStyle) + func (c *Canvas) StrokeLine2(sty LineStyle, x0, y0, x1, y1 vg.Length) + func (c *Canvas) StrokeLines(sty LineStyle, lines ...[]vg.Point) + func (c *Canvas) X(x float64) vg.Length + func (c *Canvas) Y(y float64) vg.Length + type CircleGlyph struct + func (CircleGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) + type CrossGlyph struct + func (CrossGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) + type GlyphDrawer interface + DrawGlyph func(*Canvas, GlyphStyle, vg.Point) + type GlyphStyle struct + Radius vg.Length + Shape GlyphDrawer + func (g GlyphStyle) Rectangle() vg.Rectangle + type LineStyle struct + Color color.Color + DashOffs vg.Length + Dashes []vg.Length + Width vg.Length + type PlainTextHandler = text.Plain + type PlusGlyph struct + func (PlusGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) + type PyramidGlyph struct + func (PyramidGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) + type RingGlyph struct + func (RingGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) + type SquareGlyph struct + func (SquareGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) + type TextHandler = text.Handler + type TextStyle = text.Style + type Tiles struct + Cols int + PadBottom vg.Length + PadLeft vg.Length + PadRight vg.Length + PadTop vg.Length + PadX vg.Length + PadY vg.Length + Rows int + func (ts Tiles) At(c Canvas, x, y int) Canvas + type TriangleGlyph struct + func (TriangleGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) + type XAlignment = text.XAlignment + type YAlignment = text.YAlignment