Documentation ¶
Index ¶
- func Deg2Rad(degrees float64) float64
- func Rad2Deg(radians float64) float64
- type BlendType
- type Canvas
- func (canvas *Canvas) Circle(cx, cy, r int, color color.RGBA)
- func (canvas *Canvas) CircleFilled(cx, cy, r int, color color.RGBA)
- func (canvas *Canvas) CircleOutline(cx, cy, r int, insideColor, outlineColor color.RGBA)
- func (canvas *Canvas) DrawPath(path []image.Point, color color.RGBA)
- func (canvas *Canvas) Fill(color color.RGBA)
- func (canvas *Canvas) IsPointInCanvas(x, y int) bool
- func (canvas *Canvas) Line(x1, y1, x2, y2 int, color color.RGBA)
- func (canvas *Canvas) PixelAt(x, y int) color.RGBA
- func (canvas *Canvas) PutCanvas(x, y, w, h int, canvas2 *Canvas)
- func (canvas *Canvas) Rect(x1, y1, x2, y2 int, color color.RGBA)
- func (canvas *Canvas) RectFilled(x1, y1, x2, y2 int, color color.RGBA)
- func (canvas *Canvas) RotatePoint(x, y, degrees float64) (int, int)
- func (canvas *Canvas) SetPixel(x, y int, color color.RGBA)
- func (canvas *Canvas) Text(text string, x, y int, face *basicfont.Face, color color.RGBA)
- func (canvas *Canvas) Triangle(x1, y1, x2, y2, x3, y3 int, color color.RGBA)
- func (canvas *Canvas) TriangleFilled(x1, y1, x2, y2, x3, y3 int, color color.RGBA)
- func (canvas *Canvas) TriangleOutline(x1, y1, x2, y2, x3, y3 int, fillColor, outlineColor color.RGBA)
- func (canvas *Canvas) WritePNG(writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Canvas ¶
func CanvasFromImageRGBA ¶
Convert an image into a canvas
func (*Canvas) CircleFilled ¶
Draws a filled circle
func (*Canvas) CircleOutline ¶
Draws a circle with an outline
func (*Canvas) IsPointInCanvas ¶
Is the point inside of the canvas?
func (*Canvas) RectFilled ¶
Draws a filled rectangle
func (*Canvas) RotatePoint ¶
Rotate a point in space by degrees
func (*Canvas) TriangleFilled ¶
Draws a filled triangle
Click to show internal directories.
Click to hide internal directories.