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[F Float](val F) int
- func IsPromotionMove(square chess.Square, piece chess.Piece) bool
- func Min[T constraints.Ordered](a, b T) T
- func OpenImage(filename string) (image.Image, error)
- func PointToSquare(point f32.Point, size float32, flipped bool) chess.Square
- func Rect(origin, size image.Point) image.Rectangle
- func Round[F Float](val F) int
- func SquareColor(square chess.Square) chess.Color
- func SquareToPoint(square chess.Square, size float32, flipped bool) f32.Point
- func ToF32(pt image.Point) f32.Point
- func Transparentize(c color.NRGBA, percent float32) color.NRGBA
- type Float
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BlackColor = color.NRGBA{R: 0x00, G: 0x00, B: 0x00, A: 0xFF} WhiteColor = color.NRGBA{R: 0xFF, G: 0xFF, B: 0xFF, A: 0xFF} 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 ¶
Click to show internal directories.
Click to hide internal directories.