Documentation ¶
Index ¶
- Variables
- func DrawArrow(ops *op.Ops, start, end image.Point, squareSize f32.Point, width float32, ...)
- func DrawCircle(ops *op.Ops, rect image.Rectangle, width float32, color color.NRGBA)
- func DrawCross(ops *op.Ops, rect image.Rectangle, width float32, color color.NRGBA)
- func DrawEllipse(ops *op.Ops, rect image.Rectangle, color color.NRGBA)
- func DrawImage(ops *op.Ops, img image.Image, at image.Point, factor f32.Point)
- func DrawPane(ops *op.Ops, rect image.Rectangle, color color.NRGBA)
- func DrawRectangle(ops *op.Ops, rect image.Rectangle, width float32, color color.NRGBA)
- func Floor(val float32) int
- func Min[T constraints.Ordered](a, b T) T
- func OpenImage(filename string) (image.Image, error)
- func Rect(origin, size image.Point) image.Rectangle
- func Round(val float32) int
- func ToF32(pt image.Point) f32.Point
- func Transparentize(c color.NRGBA, percent float32) color.NRGBA
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GrayColor = color.NRGBA{R: 0x80, G: 0x80, B: 0x80, A: 0xFF} RedColor = color.NRGBA{R: 0xC0, G: 0x40, B: 0x40, A: 0xFF} YellowColor = color.NRGBA{R: 0xC0, G: 0xC0, B: 0x40, A: 0xFF} GreenColor = color.NRGBA{R: 0x40, G: 0xC0, B: 0x40, A: 0xFF} BlueColor = color.NRGBA{R: 0x40, G: 0x40, B: 0xC0, A: 0xFF} )
Functions ¶
func DrawCircle ¶
func DrawRectangle ¶
func Min ¶
func Min[T constraints.Ordered](a, b T) T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.