Documentation ¶
Index ¶
- Variables
- func DrawCircle(originX, originY int, radius float64, c color.Color, fill bool)
- func DrawLine(x1, y1, x2, y2 int, c color.Color)
- func DrawRect(x1, y1, x2, y2 int, c color.Color)
- func ResetCanvas()
- func ScatterPlot(d [][2]float64, c color.Color, scale [2]float64, connect ConnectMode)
- func Start()
- type ConnectMode
- type Orientation
- type Rotation
- type Walker
Constants ¶
This section is empty.
Variables ¶
View Source
var Height = 600
View Source
var Loop = func() { panic("No loop function set") }
View Source
var Tick = time.Millisecond
View Source
var Width = 800
Functions ¶
func ResetCanvas ¶
func ResetCanvas()
func ScatterPlot ¶
func ScatterPlot(d [][2]float64, c color.Color, scale [2]float64, connect ConnectMode)
Types ¶
type ConnectMode ¶
type ConnectMode uint8
const ( NoConnect ConnectMode = iota OpenConnect ClosedConnect )
type Orientation ¶
type Orientation uint8
const ( North Orientation = iota East South West )
func RandomOrientation ¶
func RandomOrientation() Orientation
func (Orientation) Rotate ¶
func (o Orientation) Rotate(r Rotation) Orientation
func (Orientation) String ¶
func (o Orientation) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.