Documentation ¶
Index ¶
- Constants
- Variables
- func ClearZeros()
- func Get(axes GridAxes) uint8
- func ResetValues()
- func Set(axes GridAxes, value uint8)
- func Set0(axes GridAxes, value uint8)
- func Uniq() (uniq uint64)
- type CommandType
- type Field
- func (f *Field) ControlledInfiniteStepper(modifiedImagesCh chan<- *image.RGBA, commandCh <-chan CommandType, ...)
- func (f *Field) DryRunStepper(maxSteps, minCleanStreak, maxNoisyDots uint64)
- func (f *Field) ModifiedImagesStepper(modifiedImagesCh chan<- *image.RGBA, maxSteps int, palette []color.RGBA)
- func (f *Field) ModifiedPointsStepper(modifiedImagesCh chan<- ModifiedImage, palette []color.RGBA, ...)
- func (f *Field) Run(maxSteps uint64) iter.Seq2[GridPoint, uint8]
- func (f *Field) RunAxes(maxSteps uint64) iter.Seq[GridAxes]
- func (f *Field) RunPoint(maxSteps uint64) iter.Seq2[GridAxes, image.Point]
- type GridAxes
- type GridCoords
- type GridLine
- type GridOffsets
- type GridPoint
- type Line
- type ModifiedImage
- type Point
Constants ¶
View Source
const GridLinesTotal = uint8(5)
View Source
const MaxModifiedPoints = 32 * 1024
View Source
const OverflowOffset = 1024
View Source
const X = 0
View Source
const Y = 1
Variables ¶
View Source
var AxisNames = [25]string{
"A", "B", "C", "D", "E",
"F", "G", "H", "I", "J",
"K", "L", "M", "N", "O",
"P", "Q", "R", "S", "T",
"U", "V", "W", "X", "Y",
}
Functions ¶
func ClearZeros ¶ added in v0.3.0
func ClearZeros()
func ResetValues ¶
func ResetValues()
Types ¶
type Field ¶
type Field struct { Rules []bool Limit uint8 InitialPoint string // contains filtered or unexported fields }
func (*Field) ControlledInfiniteStepper ¶
func (*Field) DryRunStepper ¶ added in v0.3.0
func (*Field) ModifiedImagesStepper ¶
func (*Field) ModifiedPointsStepper ¶
func (f *Field) ModifiedPointsStepper( modifiedImagesCh chan<- ModifiedImage, palette []color.RGBA, maxSteps, partialSteps, minCleanStreak, maxNoisyDots uint64, )
type GridAxes ¶
type GridAxes struct { Axis0 uint8 Axis1 uint8 Coords GridCoords }
type GridCoords ¶ added in v0.3.0
type GridCoords struct { Offset0 offsetInt Offset1 offsetInt }
type GridOffsets ¶
type GridOffsets [GridLinesTotal]offsetInt
type GridPoint ¶
type GridPoint struct { Axes GridAxes Offsets GridOffsets Point Point }
Click to show internal directories.
Click to hide internal directories.