Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keys ¶
type Keys struct {
LeftArrow bool
RightArrow bool
UpArrow bool
DownArrow bool
A bool
B bool
C bool
D bool
E bool
F bool
G bool
H bool
I bool
J bool
K bool
L bool
M bool
N bool
O bool
P bool
Q bool
R bool
S bool
T bool
U bool
V bool
W bool
X bool
Y bool
Z bool
Number0 bool
Number1 bool
Number2 bool
Number3 bool
Number4 bool
Number5 bool
Number6 bool
Number7 bool
Number8 bool
Number9 bool
F1 bool
F2 bool
F3 bool
F4 bool
F5 bool
F6 bool
F7 bool
F8 bool
F9 bool
F10 bool
F11 bool
F12 bool
Space bool
Backspace bool
Tab bool
LeftShift bool
RightShift bool
LeftCtrl bool
RightCtrl bool
LeftAlt bool
RightAlt bool
Enter bool
Delete bool
Escape bool
Backquote bool
Minus bool
Equal bool
Comma bool
Period bool
SemiColon bool
Apostrophe bool
ForwardSlash bool
BackSlash bool
OpenSquareBracket bool
CloseSquareBracket bool
}
type MouseButtons ¶
type Turtle ¶
type Turtle interface {
Forward(distance float64)
F(distance float64) // Forward alias
Backward(distance float64)
B(distance float64) // Backward alias
PanRightward(distance float64)
PanR(distance float64) // PanRightward alias
PanLeftward(distance float64)
PanL(distance float64) // PanLeftward alias
GoTo(x, y float64)
GetPos() (x, y float64)
Left(angle float64)
L(angle float64) // Turn Left alias
Right(angle float64)
R(angle float64) // Turn Right alias
SetAngle(angle float64)
PointToward(x, y float64)
GetAngle() float64
SetDegreesMode() // Default is degree mode.
SetRadianMode()
EnableCompassAngleMode(in bool) // Make it so North is 0 degrees, East is 90...
SetSpeed(PixelsPerSecond float64)
PenUp()
PU() // Pen Up alias
Off() // Pen Up alias
PenDown()
PD() // Pen Down alias
On() // Pen Down alias
PenColor(c color.RGBA)
PenSize(size float64)
}
type UserInput ¶
type UserInput struct {
KeysDown Keys
KeysJustPressed Keys
MouseDown MouseButtons
MouseJustPressed MouseButtons
MouseX int
MouseY int
MouseScroll float64
}
Click to show internal directories.
Click to hide internal directories.