Versions in this module Expand all Collapse all v0 v0.7.2 Apr 1, 2019 Changes in this version + const Alphabetic + const Bevel + const Bottom + const Butt + const Center + const End + const Hanging + const Ideographic + const Left + const Middle + const Miter + const Right + const Round + const Square + const Start + const Top + var Performance = struct{ ... } + type Canvas struct + func New(backend backendbase.Backend) *Canvas + func (cv *Canvas) Arc(x, y, radius, startAngle, endAngle float64, anticlockwise bool) + func (cv *Canvas) ArcTo(x1, y1, x2, y2, radius float64) + func (cv *Canvas) BeginPath() + func (cv *Canvas) BezierCurveTo(x1, y1, x2, y2, x3, y3 float64) + func (cv *Canvas) ClearRect(x, y, w, h float64) + func (cv *Canvas) Clip() + func (cv *Canvas) ClosePath() + func (cv *Canvas) CreateLinearGradient(x0, y0, x1, y1 float64) *LinearGradient + func (cv *Canvas) CreatePattern(src interface{}, repetition string) *ImagePattern + func (cv *Canvas) CreateRadialGradient(x0, y0, r0, x1, y1, r1 float64) *RadialGradient + func (cv *Canvas) DrawImage(image interface{}, coords ...float64) + func (cv *Canvas) Fill() + func (cv *Canvas) FillPath(path *Path2D) + func (cv *Canvas) FillRect(x, y, w, h float64) + func (cv *Canvas) FillText(str string, x, y float64) + func (cv *Canvas) GetImageData(x, y, w, h int) *image.RGBA + func (cv *Canvas) GetLineDash() []float64 + func (cv *Canvas) Height() int + func (cv *Canvas) LineTo(x, y float64) + func (cv *Canvas) LoadFont(src interface{}) (*Font, error) + func (cv *Canvas) LoadImage(src interface{}) (*Image, error) + func (cv *Canvas) MeasureText(str string) TextMetrics + func (cv *Canvas) MoveTo(x, y float64) + func (cv *Canvas) PutImageData(img *image.RGBA, x, y int) + func (cv *Canvas) QuadraticCurveTo(x1, y1, x2, y2 float64) + func (cv *Canvas) Rect(x, y, w, h float64) + func (cv *Canvas) Restore() + func (cv *Canvas) Rotate(angle float64) + func (cv *Canvas) Save() + func (cv *Canvas) Scale(x, y float64) + func (cv *Canvas) SetFillStyle(value ...interface{}) + func (cv *Canvas) SetFont(src interface{}, size float64) + func (cv *Canvas) SetGlobalAlpha(alpha float64) + func (cv *Canvas) SetLineCap(cap lineCap) + func (cv *Canvas) SetLineDash(dash []float64) + func (cv *Canvas) SetLineDashOffset(offset float64) + func (cv *Canvas) SetLineJoin(join lineJoin) + func (cv *Canvas) SetLineWidth(width float64) + func (cv *Canvas) SetMiterLimit(limit float64) + func (cv *Canvas) SetShadowBlur(r float64) + func (cv *Canvas) SetShadowColor(color ...interface{}) + func (cv *Canvas) SetShadowOffset(x, y float64) + func (cv *Canvas) SetShadowOffsetX(offset float64) + func (cv *Canvas) SetShadowOffsetY(offset float64) + func (cv *Canvas) SetStrokeStyle(value ...interface{}) + func (cv *Canvas) SetTextAlign(align textAlign) + func (cv *Canvas) SetTextBaseline(baseline textBaseline) + func (cv *Canvas) SetTransform(a, b, c, d, e, f float64) + func (cv *Canvas) Size() (int, int) + func (cv *Canvas) Stroke() + func (cv *Canvas) StrokePath(path *Path2D) + func (cv *Canvas) StrokeRect(x, y, w, h float64) + func (cv *Canvas) StrokeText(str string, x, y float64) + func (cv *Canvas) Transform(a, b, c, d, e, f float64) + func (cv *Canvas) Translate(x, y float64) + func (cv *Canvas) Width() int + type Font struct + type Image struct + func (img *Image) Delete() + func (img *Image) Height() int + func (img *Image) Replace(src interface{}) error + func (img *Image) Size() (int, int) + func (img *Image) Width() int + type ImagePattern struct + type LinearGradient struct + func (lg *LinearGradient) AddColorStop(pos float64, stopColor ...interface{}) + func (lg *LinearGradient) Delete() + type Path2D struct + func NewPath2D() *Path2D + func (p *Path2D) Arc(x, y, radius, startAngle, endAngle float64, anticlockwise bool) + func (p *Path2D) ArcTo(x1, y1, x2, y2, radius float64) + func (p *Path2D) BezierCurveTo(x1, y1, x2, y2, x3, y3 float64) + func (p *Path2D) ClosePath() + func (p *Path2D) LineTo(x, y float64) + func (p *Path2D) MoveTo(x, y float64) + func (p *Path2D) QuadraticCurveTo(x1, y1, x2, y2 float64) + func (p *Path2D) Rect(x, y, w, h float64) + type RadialGradient struct + func (rg *RadialGradient) AddColorStop(pos float64, stopColor ...interface{}) + func (rg *RadialGradient) Delete() + type TextMetrics struct + ActualBoundingBoxAscent float64 + ActualBoundingBoxDescent float64 + Width float64