glitch

package module
v0.0.0-...-8345045 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2017 License: MIT Imports: 8 Imported by: 0

README

glitch

An image glitcher in golang.

Initially this is a more-or-less direct port of http://www.airtightinteractive.com/demos/js/imageglitcher/ while I'm learning Go, but when I'm more confident the glitching algorithms will be rewritten.

All the original javascript algorithms on which the initial build of this project is based were created by Felix Turner.

Usage: glitch [-gblsf] input_image output_image
  -b=5: Defines how much brightening to do (0-100) - shorthand syntax
  -brightness=5: Defines how much brightening to do (0-100)
  -f=0: Number of frames (only valid for gif output) - shorthand syntax
  -frames=0: Number of frames (only valid for gif output)
  -g=5: Defines how much glitching to do (0-100) - shorthand syntax
  -glitch=5: Defines how much glitching to do (0-100)
  -l=true: Apply the scan line filter - shorthand syntax
  -s="my.host.name": Seed for the randomiser - shorthand syntax
  -scanlines=true: Apply the scan line filter
  -seed="my.host.name": Seed for the randomiser

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Debug enables debugging print outs

Functions

func Glitchify

func Glitchify(inputDecode image.Image, glitchFactor, brightnessFactor float64, useScanLines bool) image.Image

Glitchify returns the glitchified input image

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL