Skip to content

jpoz/glitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Glitch Images with Go (Golang)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages