Documentation
¶
Index ¶
- type Canvas
- type Turtle
- func (_m *Turtle) B(distance float64)
- func (_m *Turtle) Backward(distance float64)
- func (_m *Turtle) EnableCompassAngleMode(in bool)
- func (_m *Turtle) F(distance float64)
- func (_m *Turtle) Forward(distance float64)
- func (_m *Turtle) GetAngle() float64
- func (_m *Turtle) GetPos() (float64, float64)
- func (_m *Turtle) GoTo(x float64, y float64)
- func (_m *Turtle) L(angle float64)
- func (_m *Turtle) Left(angle float64)
- func (_m *Turtle) Off()
- func (_m *Turtle) On()
- func (_m *Turtle) PD()
- func (_m *Turtle) PU()
- func (_m *Turtle) PaintDot(size float64)
- func (_m *Turtle) PanL(distance float64)
- func (_m *Turtle) PanLeftward(distance float64)
- func (_m *Turtle) PanR(distance float64)
- func (_m *Turtle) PanRightward(distance float64)
- func (_m *Turtle) PenColor(c color.RGBA)
- func (_m *Turtle) PenDown()
- func (_m *Turtle) PenSize(size float64)
- func (_m *Turtle) PenUp()
- func (_m *Turtle) PointToward(x float64, y float64)
- func (_m *Turtle) R(angle float64)
- func (_m *Turtle) Right(angle float64)
- func (_m *Turtle) SetAngle(angle float64)
- func (_m *Turtle) SetDegreesMode()
- func (_m *Turtle) SetRadianMode()
- func (_m *Turtle) SetSpeed(PixelsPerSecond float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
Canvas is an autogenerated mock type for the Canvas type
func NewCanvas ¶
func NewCanvas(t mockConstructorTestingTNewCanvas) *Canvas
NewCanvas creates a new instance of Canvas. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Canvas) FillScreen ¶
FillScreen provides a mock function with given fields: c
func (*Canvas) GetUserInput ¶
GetUserInput provides a mock function with given fields:
func (*Canvas) SetCartesianPixel ¶
SetCartesianPixel provides a mock function with given fields: x, y, c
type Turtle ¶
Turtle is an autogenerated mock type for the Turtle type
func NewTurtle ¶
func NewTurtle(t mockConstructorTestingTNewTurtle) *Turtle
NewTurtle creates a new instance of Turtle. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Turtle) EnableCompassAngleMode ¶
EnableCompassAngleMode provides a mock function with given fields: in
func (*Turtle) PanLeftward ¶
PanLeftward provides a mock function with given fields: distance
func (*Turtle) PanRightward ¶
PanRightward provides a mock function with given fields: distance
func (*Turtle) PenDown ¶
func (_m *Turtle) PenDown()
PenDown provides a mock function with given fields:
func (*Turtle) PointToward ¶
PointToward provides a mock function with given fields: x, y
func (*Turtle) SetDegreesMode ¶
func (_m *Turtle) SetDegreesMode()
SetDegreesMode provides a mock function with given fields:
func (*Turtle) SetRadianMode ¶
func (_m *Turtle) SetRadianMode()
SetRadianMode provides a mock function with given fields: