Documentation
¶
Index ¶
- func GetChar(char byte) []byte
- type Canvas
- func (c *Canvas) BlendPixel(x, y int, col color.Color)
- func (c *Canvas) Clear(col color.Color)
- func (c *Canvas) Clip(x float64, y float64, w float64, h float64)
- func (c *Canvas) CurrentState() *State
- func (c *Canvas) DrawCircle(x0, y0 int, r int)
- func (c *Canvas) DrawFixedChar(x, y float64, ch byte, pixelSize float64)
- func (c *Canvas) DrawFixedString(x, y float64, str string, pixelSize float64)
- func (c *Canvas) DrawLine(x0, y0, x1, y1 int, alpha float64)
- func (c *Canvas) DrawRect(x, y, w, h float64)
- func (c *Canvas) FillCircle(x, y, radius int)
- func (c *Canvas) FillRect(x, y, w, h int, alpha float64)
- func (c *Canvas) Height() int
- func (c *Canvas) RGBA() *image.RGBA
- func (c *Canvas) Restore()
- func (c *Canvas) Save()
- func (c *Canvas) SetColor(col color.RGBA)
- func (c *Canvas) SetLineWidth(w float64)
- func (c *Canvas) SetPixel(x, y float64, a float64)
- func (c *Canvas) Transform(x float64, y float64)
- func (c *Canvas) Width() int
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
func (*Canvas) CurrentState ¶
func (*Canvas) DrawCircle ¶
func (*Canvas) DrawFixedChar ¶
func (*Canvas) DrawFixedString ¶
func (*Canvas) FillCircle ¶
func (*Canvas) SetLineWidth ¶
Click to show internal directories.
Click to hide internal directories.