Documentation ¶
Index ¶
- type Canvas
- func (C *Canvas) Arc(x, y, r, angle1, angle2 float64)
- func (C *Canvas) BeginPath()
- func (C *Canvas) Circle(x, y, r float64)
- func (C *Canvas) Clear()
- func (C *Canvas) ClearPath()
- func (C *Canvas) Clip()
- func (C *Canvas) ClosePath()
- func (C *Canvas) CubicTo(x1, y1, x2, y2, x3, y3 float64)
- func (C *Canvas) DrawImage(im image.Image, x, y int)
- func (C *Canvas) DrawString(s string, x, y float64)
- func (C *Canvas) Ellipse(x, y, rx, ry float64)
- func (C *Canvas) Fill()
- func (C *Canvas) Height() int
- func (C *Canvas) Image() image.Image
- func (C *Canvas) Line(x1, y1, x2, y2 float64)
- func (C *Canvas) LineTo(x, y float64)
- func (C *Canvas) MeasureString(s string) (w, h float64)
- func (C *Canvas) MoveTo(x, y float64)
- func (C *Canvas) QuadraticTo(x1, y1, x2, y2 float64)
- func (C *Canvas) Rectangle(x, y, w, h float64)
- func (C *Canvas) ResetClip()
- func (C *Canvas) Restore()
- func (C *Canvas) Rotate(angle float64)
- func (C *Canvas) RoundedRectangle(x, y, w, h, r float64)
- func (C *Canvas) Save()
- func (C *Canvas) Scale(x, y float64)
- func (C *Canvas) SetColor(c color.Color)
- func (C *Canvas) SetDash(dashes ...float64)
- func (C *Canvas) SetDashOffset(offset float64)
- func (C *Canvas) SetFont(v font.Face)
- func (C *Canvas) SetHexColor(x string)
- func (C *Canvas) SetLineWidth(lineWidth float64)
- func (C *Canvas) Stroke()
- func (C *Canvas) Translate(x, y float64)
- func (C *Canvas) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
func (*Canvas) DrawString ¶
func (*Canvas) MeasureString ¶
func (*Canvas) QuadraticTo ¶
func (*Canvas) RoundedRectangle ¶
func (*Canvas) SetDashOffset ¶
func (*Canvas) SetHexColor ¶
func (*Canvas) SetLineWidth ¶
Click to show internal directories.
Click to hide internal directories.