Versions in this module Expand all Collapse all v0 v0.2.0 Dec 17, 2021 v0.1.0 Nov 26, 2021 Changes in this version + type Filterspec struct + In string + In2 string + Result string + type Offcolor struct + Color string + Offset uint8 + Opacity float64 + type SVG struct + Writer io.Writer + func New(w io.Writer) *SVG + func (svg *SVG) Arc(sx int, sy int, ax int, ay int, r int, large bool, sweep bool, ex int, ey int, ...) + func (svg *SVG) Bezier(sx int, sy int, cx int, cy int, px int, py int, ex int, ey int, s ...string) + func (svg *SVG) Blur(p float64) + func (svg *SVG) Brightness(p float64) + func (svg *SVG) CenterRect(x int, y int, w int, h int, s ...string) + func (svg *SVG) Circle(x int, y int, r int, s ...string) + func (svg *SVG) ClipEnd() + func (svg *SVG) ClipPath(s ...string) + func (svg *SVG) Def() + func (svg *SVG) DefEnd() + func (svg *SVG) Desc(s string) + func (svg *SVG) Ellipse(x int, y int, w int, h int, s ...string) + func (svg *SVG) End() + func (svg *SVG) FeBlend(fs Filterspec, mode string, s ...string) + func (svg *SVG) FeColorMatrix(fs Filterspec, values [20]float64, s ...string) + func (svg *SVG) FeColorMatrixHue(fs Filterspec, value float64, s ...string) + func (svg *SVG) FeColorMatrixLuminence(fs Filterspec, s ...string) + func (svg *SVG) FeColorMatrixSaturate(fs Filterspec, value float64, s ...string) + func (svg *SVG) FeCompEnd() + func (svg *SVG) FeComponentTransfer() + func (svg *SVG) FeComposite(fs Filterspec, operator string, k1, k2, k3, k4 int, s ...string) + func (svg *SVG) FeConvolveMatrix(fs Filterspec, matrix [9]int, s ...string) + func (svg *SVG) FeDiffEnd() + func (svg *SVG) FeDiffuseLighting(fs Filterspec, scale, constant float64, s ...string) + func (svg *SVG) FeDisplacementMap(fs Filterspec, scale float64, xchannel, ychannel string, s ...string) + func (svg *SVG) FeDistantLight(fs Filterspec, azimuth, elevation float64, s ...string) + func (svg *SVG) FeFlood(fs Filterspec, color string, opacity float64, s ...string) + func (svg *SVG) FeFuncDiscrete(channel string, tv []float64) + func (svg *SVG) FeFuncGamma(channel string, amplitude, exponent, offset float64) + func (svg *SVG) FeFuncLinear(channel string, slope, intercept float64) + func (svg *SVG) FeFuncTable(channel string, tv []float64) + func (svg *SVG) FeGaussianBlur(fs Filterspec, stdx, stdy float64, s ...string) + func (svg *SVG) FeImage(href string, result string, s ...string) + func (svg *SVG) FeMerge(nodes []string, s ...string) + func (svg *SVG) FeMorphology(fs Filterspec, operator string, xradius, yradius float64, s ...string) + func (svg *SVG) FeOffset(fs Filterspec, dx, dy int, s ...string) + func (svg *SVG) FePointLight(x, y, z float64, s ...string) + func (svg *SVG) FeSpecEnd() + func (svg *SVG) FeSpecularLighting(fs Filterspec, scale, constant float64, exponent int, color string, ...) + func (svg *SVG) FeSpotLight(fs Filterspec, x, y, z, px, py, pz float64, s ...string) + func (svg *SVG) FeTile(fs Filterspec, in string, s ...string) + func (svg *SVG) FeTurbulence(fs Filterspec, ftype string, bfx, bfy float64, octaves int, seed int64, ...) + func (svg *SVG) Fend() + func (svg *SVG) Filter(id string, s ...string) + func (svg *SVG) Gend() + func (svg *SVG) Gid(s string) + func (svg *SVG) Grayscale() + func (svg *SVG) Grid(x int, y int, w int, h int, n int, s ...string) + func (svg *SVG) Group(s ...string) + func (svg *SVG) Gstyle(s string) + func (svg *SVG) Gtransform(s string) + func (svg *SVG) HueRotate(a float64) + func (svg *SVG) Image(x int, y int, w int, h int, link string, s ...string) + func (svg *SVG) Invert() + func (svg *SVG) Line(x1, y1, x2, y2 interface{}, s ...string) + func (svg *SVG) LinearGradient(id string, x1, y1, x2, y2 uint8, sc []Offcolor) + func (svg *SVG) Link(href string, title string) + func (svg *SVG) LinkEnd() + func (svg *SVG) Marker(id string, x, y, width, height int, s ...string) + func (svg *SVG) MarkerEnd() + func (svg *SVG) Mask(id string, x int, y int, w int, h int, s ...string) + func (svg *SVG) MaskEnd() + func (svg *SVG) Path(d string, s ...string) + func (svg *SVG) Pattern(id string, x, y, width, height int, putype string, s ...string) + func (svg *SVG) PatternEnd() + func (svg *SVG) Polygon(x []float64, y []float64, s ...string) + func (svg *SVG) Polyline(x []float64, y []float64, s ...string) + func (svg *SVG) Qbez(sx int, sy int, cx int, cy int, ex int, ey int, s ...string) + func (svg *SVG) Qbezier(sx int, sy int, cx int, cy int, ex int, ey int, tx int, ty int, s ...string) + func (svg *SVG) RGB(r int, g int, b int) string + func (svg *SVG) RGBA(r int, g int, b int, a float64) string + func (svg *SVG) RadialGradient(id string, cx, cy, r, fx, fy uint8, sc []Offcolor) + func (svg *SVG) Rect(x, y, w, h interface{}, s ...string) + func (svg *SVG) Rotate(r float64) + func (svg *SVG) RotateTranslate(x, y int, r float64) + func (svg *SVG) Roundrect(x int, y int, w int, h int, rx int, ry int, s ...string) + func (svg *SVG) Saturate(p float64) + func (svg *SVG) Scale(n float64) + func (svg *SVG) ScaleXY(dx, dy float64) + func (svg *SVG) Script(scriptype string, data ...string) + func (svg *SVG) Sepia() + func (svg *SVG) SkewX(a float64) + func (svg *SVG) SkewXY(ax, ay float64) + func (svg *SVG) SkewY(a float64) + func (svg *SVG) Square(x int, y int, l int, s ...string) + func (svg *SVG) Start(w int, h int, ns ...string) + func (svg *SVG) Startview(w, h, minx, miny, vw, vh int) + func (svg *SVG) Text(x int, y int, t string, s ...string) + func (svg *SVG) Textlines(x, y int, s []string, size, spacing int, fill, align string) + func (svg *SVG) Textpath(t string, pathid string, s ...string) + func (svg *SVG) Title(s string) + func (svg *SVG) Translate(x, y int) + func (svg *SVG) TranslateRotate(x, y int, r float64) + func (svg *SVG) Use(x int, y int, link string, s ...string)