Versions in this module Expand all Collapse all v0 v0.12.3 Jan 19, 2022 Changes in this version + var MatIdentity = Mat + type Backend interface + AsImage func() Image + CanUseAsImage func(b Backend) bool + Clear func(pts [4]Vec) + ClearClip func() + Clip func(pts []Vec) + DrawImage func(dimg Image, sx, sy, sw, sh float64, pts [4]Vec, alpha float64) + Fill func(style *FillStyle, pts []Vec, tf Mat, canOverlap bool) + FillImageMask func(style *FillStyle, mask *image.Alpha, pts [4]Vec) + GetImageData func(x, y, w, h int) *image.RGBA + LoadImage func(img image.Image) (Image, error) + LoadImagePattern func(data ImagePatternData) ImagePattern + LoadLinearGradient func(data Gradient) LinearGradient + LoadRadialGradient func(data Gradient) RadialGradient + PutImageData func(img *image.RGBA, x, y int) + Size func() (int, int) + type FillStyle struct + Blur float64 + Color color.RGBA + Gradient struct{ ... } + ImagePattern ImagePattern + LinearGradient LinearGradient + RadialGradient RadialGradient + type Gradient []GradientStop + func (g Gradient) ColorAt(pos float64) color.RGBA + type GradientStop struct + Color color.RGBA + Pos float64 + type Image interface + Delete func() + Height func() int + Replace func(src image.Image) error + Size func() (w, h int) + Width func() int + type ImagePattern interface + Delete func() + Replace func(data ImagePatternData) + type ImagePatternData struct + Image Image + Repeat ImagePatternRepeat + Transform [9]float64 + type ImagePatternRepeat uint8 + const NoRepeat + const Repeat + const RepeatX + const RepeatY + type LinearGradient interface + Delete func() + Replace func(data Gradient) + type Mat [6]float64 + func MatRotate(radians float64) Mat + func MatScale(v Vec) Mat + func MatTranslate(v Vec) Mat + func (m *Mat) String() string + func (m Mat) Invert() Mat + func (m Mat) Mat2() Mat2 + func (m Mat) Mul(m2 Mat) Mat + type Mat2 [4]float64 + func (m *Mat2) String() string + type RadialGradient interface + Delete func() + Replace func(data Gradient) + type Vec [2]float64 + func (v Vec) Add(v2 Vec) Vec + func (v Vec) Angle() float64 + func (v Vec) AngleTo(v2 Vec) float64 + func (v Vec) Atan2() float64 + func (v Vec) Div(v2 Vec) Vec + func (v Vec) Divf(f float64) Vec + func (v Vec) Dot(v2 Vec) float64 + func (v Vec) Len() float64 + func (v Vec) LenSqr() float64 + func (v Vec) Mul(v2 Vec) Vec + func (v Vec) MulMat(m Mat) Vec + func (v Vec) MulMat2(m Mat2) Vec + func (v Vec) Mulf(f float64) Vec + func (v Vec) Norm() Vec + func (v Vec) String() string + func (v Vec) Sub(v2 Vec) Vec