Skip to content

Latest commit

 

History

History
194 lines (119 loc) · 3.17 KB

README.md

File metadata and controls

194 lines (119 loc) · 3.17 KB

glitch

GoDoc

Glitch Images with Go (Golang)

Functions

NewGlitch

gl, err := glitch.NewGlitch("./example.jpg")
if err != nil {
  panic(err)
}

./example.jpg

example


Seed

Glitch is based off of the rand package. Everything parameter is a random value. To seed the random number generator use Seed.

gl.Seed(10)

Copy

Copies Input directly to Output with no manipulation. This is a good function to start with

gl.Copy()

copy


TransposeInput

gl.TransposeInput()

transposeinput


VerticalTransposeInput

VerticalTransposeInput will take random vertical slices of the input, shift them and write them to the output.

gl.VerticalTransposeInput()

verticaltransposeinput


CompressionGhost

gl.Copy()
gl.CompressionGhost()

compressionghost


GhostStreach

gl.Copy()
gl.GhostStreach()

ghoststreach


HalfLifeLeft

gl.Copy()
gl.HalfLifeLeft()

halflifeleft


HalfLifeRight

gl.Copy()
gl.HalfLifeRight()

halfliferight


ChannelShiftLeft

gl.Copy()
gl.ChannelShiftLeft()

channelshiftleft


ChannelShiftRight

gl.Copy()
gl.ChannelShiftRight()

channelshiftright


BlueBoost

gl.Copy()
gl.BlueBoost()

blueboost


GreenBoost

gl.Copy()
gl.GreenBoost()

greenboost


RedBoost

gl.Copy()
gl.RedBoost()

redboost


PrismBurst

gl.Copy()
gl.PrismBurst()

prismburst


Noise

gl.Copy()
gl.Noise()

noise