Documentation ¶
Index ¶
- Variables
- func Distance(x1, y1, x2, y2 int) int
- func MergeColorCode(b, f byte) byte
- type Instance
- func (p *Instance) Box(x1, y1, x2, y2 int)
- func (p *Instance) Circle(x0, y0, radius int)
- func (p *Instance) Clear()
- func (p *Instance) DrawChar(index, fgColor, bgColor byte, x, y int)
- func (p *Instance) DrawFilledCircle(x0, y0, radius int)
- func (p *Instance) DrawLine(x0, y0, x1, y1 int)
- func (p *Instance) DrawPix(x, y int)
- func (p *Instance) Run()
Constants ¶
This section is empty.
Variables ¶
View Source
var Colors = []struct { R byte G byte B byte }{ {0, 0, 0}, {0, 0, 170}, {0, 170, 0}, {0, 170, 170}, {170, 0, 0}, {170, 0, 170}, {170, 85, 0}, {170, 170, 170}, {85, 85, 85}, {85, 85, 255}, {85, 255, 85}, {85, 255, 255}, {255, 85, 85}, {255, 85, 255}, {255, 255, 85}, {255, 255, 255}, }
Functions ¶
func MergeColorCode ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.