Documentation
¶
Index ¶
- Constants
- type Glitch
- func (gl *Glitch) BlueBoost()
- func (gl *Glitch) ChannelShiftLeft()
- func (gl *Glitch) ChannelShiftRight()
- func (gl *Glitch) CompressionGhost()
- func (gl *Glitch) Copy()
- func (gl *Glitch) GhostStreach()
- func (gl *Glitch) GreenBoost()
- func (gl *Glitch) HalfLifeLeft(strikes, length int)
- func (gl *Glitch) HalfLifeRight(strikes, length int)
- func (gl *Glitch) Noise(r, g, b, a float64)
- func (gl *Glitch) PrismBurst()
- func (gl *Glitch) RedBoost()
- func (gl *Glitch) Seed(seed int64)
- func (gl *Glitch) SetBounds(newBounds image.Rectangle)
- func (gl *Glitch) TransposeInput(height, width int, transpose bool)
- func (gl *Glitch) VerticalTransposeInput(width, height int, transpose bool)
- func (gl *Glitch) Write(out io.Writer) error
- func (gl *Glitch) ZoomColor(clrRaw color.Color, maxDistance float64, r int, maxT float64)
Constants ¶
const MAXC = 1<<16 - 1
MAXC is the maxium value returned by RGBA() will have
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Glitch ¶
type Glitch struct { Input image.Image Output draw.Image Bounds image.Rectangle // contains filtered or unexported fields }
Glitch represents the two images needed to produce a glitch
func (*Glitch) BlueBoost ¶
func (gl *Glitch) BlueBoost()
BlueBoost boost the Blue color of the image
func (*Glitch) ChannelShiftLeft ¶
func (gl *Glitch) ChannelShiftLeft()
ChannelShiftLeft shift all channels left on RGB
func (*Glitch) ChannelShiftRight ¶
func (gl *Glitch) ChannelShiftRight()
ChannelShiftRight shift all channels right on RGB
func (*Glitch) CompressionGhost ¶
func (gl *Glitch) CompressionGhost()
CompressionGhost will compress the image at the lowest value and ghost over it
func (*Glitch) GhostStreach ¶
func (gl *Glitch) GhostStreach()
GhostStreach takes the Output and streches across RGB Alpha is random
func (*Glitch) GreenBoost ¶
func (gl *Glitch) GreenBoost()
GreenBoost boost the Green color of the image
func (*Glitch) HalfLifeLeft ¶
HalfLifeLeft takes points and drags color Left with a half life.
func (*Glitch) HalfLifeRight ¶
HalfLifeRight takes points and drags color right with a half life. Number of randomply placed streaks
func (*Glitch) PrismBurst ¶
func (gl *Glitch) PrismBurst()
PrismBurst spreads channesl around the original image
func (*Glitch) TransposeInput ¶
TransposeInput moves slices of the image. transpose if true will start with transposing the image
func (*Glitch) VerticalTransposeInput ¶
VerticalTransposeInput moves slices of the image.