/GlitchKit

Primary LanguageObjective-CMIT LicenseMIT

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'