Documentation
¶
Index ¶
- Variables
- func Distance(x0, y0, x1, y1 int) int
- func DistanceManhattan(x0, y0, x1, y1 int) int
- func Handler()
- 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 (i *Instance) Clear()
- func (i *Instance) Draw(screen *ebiten.Image)
- func (i *Instance) DrawChar(index, fgColor, bgColor byte, x, y int)
- func (i *Instance) DrawCursor(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 (i *Instance) DrawPix(x, y int, color byte)
- func (i *Instance) DrawVideoTextMode()
- func (i *Instance) Input()
- func (i *Instance) Layout(outsideWidth, outsideHeight int) (int, int)
- func (i *Instance) Print(msg string)
- func (i *Instance) Println(msg string)
- func (i *Instance) PutChar(c byte)
- func (i *Instance) Run()
- func (i *Instance) Update() error
- func (i *Instance) Write(p []byte) (n int, err error)
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 DistanceManhattan ¶
func MergeColorCode ¶
Types ¶
type Instance ¶
type Instance struct { Border int Height int Width int Scale float64 CurrentColor byte UTime uint64 ScreenHandler func(*Instance) error Title string Machine int Font struct { Height int Width int Bitmap []byte } // contains filtered or unexported fields }
func (*Instance) DrawCursor ¶
func (*Instance) DrawFilledCircle ¶
func (*Instance) DrawVideoTextMode ¶
func (i *Instance) DrawVideoTextMode()
Click to show internal directories.
Click to hide internal directories.