Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 598 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 598 Bytes

GlitchKit - Glitch on image in Objective-C

before glitch

#import "GlitchKit.h"

// glitch!
[uiImageView glitch];

after glitch

// apply custom glitch
[uiImageView glitchWithBlock:^int(int byte, int index, uint length, Byte *bytes) {
  return (byte == 42 && arc4random() % 3 == 1) ? 0 : byte;
}];

after glitch3

Installation

# Podfile
pod 'GlitchKit'