Glitch Images with Go (Golang)
gl, err := glitch.NewGlitch("./example.jpg")
if err != nil {
panic(err)
}
./example.jpg
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)
Copies Input directly to Output with no manipulation. This is a good function to start with
gl.Copy()
gl.TransposeInput()
VerticalTransposeInput will take random vertical slices of the input, shift them and write them to the output.
gl.VerticalTransposeInput()
gl.Copy()
gl.CompressionGhost()
gl.Copy()
gl.GhostStreach()
gl.Copy()
gl.HalfLifeLeft()
gl.Copy()
gl.HalfLifeRight()
gl.Copy()
gl.ChannelShiftLeft()
gl.Copy()
gl.ChannelShiftRight()
gl.Copy()
gl.BlueBoost()
gl.Copy()
gl.GreenBoost()
gl.Copy()
gl.RedBoost()
gl.Copy()
gl.PrismBurst()
gl.Copy()
gl.Noise()