Documentation ¶
Index ¶
- func DrawBezierCubic(ops *op.Ops, opts BezierOptions)
- func DrawBezierQuadratic(ops *op.Ops, opts BezierOptions)
- func DrawImage(ops *op.Ops, img image.Image, filter paint.ImageFilter, scale f32.Point, ...)
- func DrawProgressBar(ops *op.Ops, source input.Source, color color.NRGBA, maxWidth float64, y int, ...)
- func DrawRRect(ops *op.Ops, size image.Point, color color.NRGBA, position image.Point, ...)
- func DrawRRectR(ops *op.Ops, size image.Point, color color.NRGBA, position image.Point, ...)
- func DrawRecordCache(ops *op.Ops)
- func DrawRecordRect(ops *op.Ops, size image.Point, color color.NRGBA, position image.Point)
- func DrawRect(ops *op.Ops, size image.Point, color color.NRGBA, position image.Point)
- func DrawRectSC(ops *op.Ops, size image.Point, color color.NRGBA)
- func DrawStrokeRect(ops *op.Ops, size image.Point, color color.NRGBA, position image.Point, ...)
- func DrawStrokeRectR(ops *op.Ops, size image.Point, color color.NRGBA, position image.Point, ...)
- func DrawStrokeTriangle(ops *op.Ops, color color.NRGBA, point1 f32.Point, point2 f32.Point, ...)
- func DrawTriangle(ops *op.Ops, color color.NRGBA, point1 f32.Point, point2 f32.Point, ...)
- func F32Pt2ImagePt(pt f32.Point) image.Point
- func ImagePt2F32Pt(pt image.Point) f32.Point
- func NewImageNRGBADynamicColor(bounds image.Rectangle) *image.NRGBA
- func NewImageNRGBARandColor(bounds image.Rectangle) *image.NRGBA
- type BezierOption
- func BZOptBPoints(move, to f32.Point, ctrl ...f32.Point) BezierOption
- func BZOptColor(value color.NRGBA) BezierOption
- func BZOptCtrl(value ...f32.Point) BezierOption
- func BZOptMove(value f32.Point) BezierOption
- func BZOptPos(value f32.Point) BezierOption
- func BZOptSize(value image.Point) BezierOption
- func BZOptTo(value f32.Point) BezierOption
- type BezierOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawBezierQuadratic ¶
func DrawBezierQuadratic(ops *op.Ops, opts BezierOptions)
DrawBezierQuadratic
func DrawImage ¶
func DrawImage( ops *op.Ops, img image.Image, filter paint.ImageFilter, scale f32.Point, position image.Point, )
DrawImage
paint.ImageOp is used to draw images. Like paint.ColorOp, it sets part of the drawing context (the “brush”) that’s used for subsequent paint.PaintOp. paint.ImageOp is used similarly to ColorOp.
Note that image.NRGBA and image.Uniform images are efficient and treated specially. Other Image implementations will undergo a more expensive copy and conversion to the underlying image model.
func DrawProgressBar ¶
func DrawRRectR ¶
func DrawRecordCache ¶
func DrawRecordRect ¶
func DrawStrokeRect ¶
func DrawStrokeRectR ¶
func DrawStrokeTriangle ¶
func DrawTriangle ¶
Types ¶
type BezierOption ¶
type BezierOption func(*BezierOptions)
func BZOptBPoints ¶
func BZOptBPoints(move, to f32.Point, ctrl ...f32.Point) BezierOption
func BZOptColor ¶
func BZOptColor(value color.NRGBA) BezierOption
func BZOptCtrl ¶
func BZOptCtrl(value ...f32.Point) BezierOption
func BZOptMove ¶
func BZOptMove(value f32.Point) BezierOption
func BZOptPos ¶
func BZOptPos(value f32.Point) BezierOption
func BZOptSize ¶
func BZOptSize(value image.Point) BezierOption
func BZOptTo ¶
func BZOptTo(value f32.Point) BezierOption
Click to show internal directories.
Click to hide internal directories.