Documentation ¶
Index ¶
- func AdjustLevel(baseColor color.Color, amount float64) (color.RGBA, error)
- func Analogous(baseColor color.RGBA, degShift float64) (color.RGBA, color.RGBA, error)
- func Complementary(baseColor color.RGBA) color.RGBA
- func Darken(baseColor color.Color, factor float64) color.RGBA
- func Desaturate(baseColor color.Color, amount float64) (color.RGBA, error)
- func GetFactionBaseColor(factionID string) color.RGBA
- func Lighten(baseColor color.RGBA, factor float64) color.RGBA
- type AngleMorph
- type AngleMorphGradient
- type Drawer
- type DrawerFunc
- type NoopDrawer
- type Point
- type TechRing
- type Walker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdjustLevel ¶ added in v0.10.3
func Desaturate ¶ added in v0.4.0
func GetFactionBaseColor ¶
Types ¶
type AngleMorph ¶ added in v0.12.0
type AngleMorph struct { RNG prng.Generator Width, Height float64 X, Y float64 MaxShiftFactorX, MaxShiftFactorY *float64 ColumnCount, RowCount int InterpolationSteps *int Color color.RGBA Gradient AngleMorphGradient ColorShiftMax *float64 StrokeWidthMain, StrokeWidthMinor *float64 TopRow, BottomRow []Point LeftColumn, RightColumn []Point }
type AngleMorphGradient ¶ added in v0.12.0
type AngleMorphGradient string
const ( AngleMorphGradientVertical AngleMorphGradient = "vertical" AngleMorphGradientHorizontal AngleMorphGradient = "horizontal" AngleMorphGradientBoth AngleMorphGradient = "both" AngleMorphGradientNone AngleMorphGradient = "none" )
type DrawerFunc ¶
type NoopDrawer ¶
type NoopDrawer struct { }
type TechRing ¶ added in v0.9.5
type Walker ¶
type Walker struct { RNG prng.Generator Direction string DirectionVariance int64 X, Y, Vx, Vy float64 Color color.Color Noise opensimplex.Noise NoiseStepFactor float64 NoiseDimensions int Grid bool StrokeWidth float64 DirectionChangeStep float64 DirectionChangeStepModifier float64 // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.