Documentation ¶
Overview ¶
Package plot implemants the Fractal Growth algorithm described in The Computational Beauty of Nature by Gary William Flake.
Index ¶
- type Grammar
- type Plotter
- type Turtle
- func (t *Turtle) Bounds() (float64, float64, float64, float64)
- func (t *Turtle) DrawForward(d float64)
- func (t *Turtle) GoForward(d float64)
- func (t *Turtle) MoveTo(x, y float64)
- func (t *Turtle) RestoreState()
- func (t *Turtle) Rotate(a float64)
- func (t *Turtle) RotateTo(h float64)
- func (t *Turtle) SaveState()
- func (t *Turtle) SetLineWidth(w float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plotter ¶
type Turtle ¶
type Turtle struct {
// contains filtered or unexported fields
}
func NewTurtle ¶
func NewTurtle(gc draw2d.GraphicContext) *Turtle
func (*Turtle) DrawForward ¶
func (*Turtle) RestoreState ¶
func (t *Turtle) RestoreState()
func (*Turtle) SetLineWidth ¶
Click to show internal directories.
Click to hide internal directories.