Documentation ¶
Index ¶
- type Context
- type Context2D
- func (context Context2D) Arc(x, y, r int, sAngle, eAngle float64)
- func (context Context2D) ArcTo(x1, y1, x2, y2, r int)
- func (context Context2D) BeginPath()
- func (context Context2D) BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y int)
- func (context Context2D) Clip()
- func (context Context2D) ClosePath()
- func (context Context2D) Fill()
- func (context Context2D) FillStyle() string
- func (context Context2D) GlobalAlpha() float64
- func (context Context2D) GlobalCompositeOperation() string
- func (context Context2D) IsPointInPath(x int, y int) bool
- func (context Context2D) Line() Line
- func (context Context2D) LineTo(x int, y int)
- func (context Context2D) MoveTo(x int, y int)
- func (context Context2D) QuadraticCurveTo(cpx, cpy, x, y int)
- func (context Context2D) Rectangle(x, y, width, height int) Rectangle
- func (context Context2D) Rotate(angle float64)
- func (context Context2D) Scale(x float64, y float64)
- func (context Context2D) SetFillStyle(value string)
- func (context Context2D) SetGlobalAlpha(value float64)
- func (context Context2D) SetGlobalCompositeOperation(value string)
- func (context Context2D) SetStrokeStyle(value string)
- func (context Context2D) Shadow() Shadow
- func (context Context2D) Stroke()
- func (context Context2D) StrokeStyle() string
- func (context Context2D) Text() Text
- func (context Context2D) Transform(a, b, c, d, e, f float64)
- func (context Context2D) Translate(x float64, y float64)
- type Line
- func (context Line) Cap() string
- func (context Line) Draw(x1, y1, x2, y2 int)
- func (context Line) Join() string
- func (context Line) MiterLimit() string
- func (context Line) SetCap(value string)
- func (context Line) SetJoin(value string)
- func (context Line) SetMiterLimit(value string)
- func (context Line) SetWidth(value int)
- func (context Line) Width() int
- type Rectangle
- type Shadow
- func (context Shadow) Blur() float64
- func (context Shadow) Color() string
- func (context Shadow) OffsetX() float64
- func (context Shadow) OffsetY() float64
- func (context Shadow) SetBlur(value float64)
- func (context Shadow) SetColor(value string)
- func (context Shadow) SetOffsetX(value float64)
- func (context Shadow) SetOffsetY(value float64)
- type Text
- func (context Text) Align() string
- func (context Text) Baseline() string
- func (context Text) Fill(text string, x, y, maxWidth int)
- func (context Text) Font() string
- func (context Text) SetAlign(value string)
- func (context Text) SetBaseline(value string)
- func (context Text) SetFont(value string)
- func (context Text) Stroke(text string, x, y, maxWidth int)
- func (context Text) Width(text string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context2D ¶
type Context2D struct {
// contains filtered or unexported fields
}
func (Context2D) BezierCurveTo ¶
BezierCurveTo adds a point to the current path by using the specified control points that represent a cubic Bézier curve.
func (Context2D) GlobalAlpha ¶
GlobalAlpha returns the current alpha or transparency value of the drawing
func (Context2D) GlobalCompositeOperation ¶
func (Context2D) IsPointInPath ¶
IsPointInPath returns true if the specified point is in the current path
func (Context2D) QuadraticCurveTo ¶
QuadraticCurveTo adds a point to the current path by using the specified control points that represent a quadratic Bézier curve.
func (Context2D) SetFillStyle ¶
func (Context2D) SetGlobalAlpha ¶
func (Context2D) SetGlobalCompositeOperation ¶
func (Context2D) SetStrokeStyle ¶
func (Context2D) StrokeStyle ¶
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
func (Line) MiterLimit ¶
func (Line) SetMiterLimit ¶
type Shadow ¶
type Shadow struct {
// contains filtered or unexported fields
}
func (Shadow) SetOffsetX ¶
func (Shadow) SetOffsetY ¶
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
func (Text) SetBaseline ¶
Click to show internal directories.
Click to hide internal directories.