Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTickDelay = time.Millisecond * 120
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer struct { // A initialized tcell screen instance. Screen tcell.Screen // The amount of random fish to generate. This is static for now, but // planned to be dynamic in the future. SwarmSize int // A delay to reduce the render speed with. // As defined in `render.DefaultTickDelay` the default delay is 120ms. TickDelay time.Duration // Signals if the renderer has been stopped recently. This can be used // as a hook to stop and start the renderer. Stopped chan bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.