Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomColor ¶
Types ¶
type BubbleTransformation ¶
type BubbleTransformation struct {
Colorize
}
func NewBubbleTransformation ¶
func NewBubbleTransformation(colorVal color.Color) *BubbleTransformation
type PolarTransformation ¶
type PolarTransformation struct {
Colorize
}
func NewPolarTransformation ¶
func NewPolarTransformation(colorVal color.Color) *PolarTransformation
type SinusoidalTransformation ¶
type SinusoidalTransformation struct {
Colorize
}
func NewSinusoidalTransformation ¶
func NewSinusoidalTransformation(colorVal color.Color) *SinusoidalTransformation
type SphericalTransformation ¶
type SphericalTransformation struct {
Colorize
}
func NewSphericalTransformation ¶
func NewSphericalTransformation(colorVal color.Color) *SphericalTransformation
type TransformationFactory ¶
type TransformationFactory struct { TransformFn TransformationType ColorFunc func() color.Color }
func NewTransformationFactory ¶
func NewTransformationFactory(transformFn TransformationType, colorFunc func() color.Color) (*TransformationFactory, error)
func (*TransformationFactory) CreateTransformation ¶
func (tf *TransformationFactory) CreateTransformation() fractal.Transformation
type TransformationType ¶
type TransformationType string
const ( Bubble TransformationType = "bubble" Sinusoidal TransformationType = "sinusoidal" Spherical TransformationType = "spherical" Polar TransformationType = "polar" Waves TransformationType = "waves" )
type WavesTransformation ¶
func NewWavesTransformation ¶
func NewWavesTransformation(colorVal color.Color, freqX, freqY, ampX, ampY float64) *WavesTransformation
Click to show internal directories.
Click to hide internal directories.