Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GlitchKit

Yuichi Tateno
December 11, 2013

 GlitchKit

iOS/Android tips 共有会 #potatotips 第二回での発表資料

- http://secondlife.hatenablog.jp/entry/2013/12/11/220052

Yuichi Tateno

December 11, 2013
Tweet

More Decks by Yuichi Tateno

Other Decks in Technology

Transcript

  1. [imageView glitchWithBlock:^int( int byte, int index, uint length, Byte *bytes)

    { return (byte == 42 && arc4random() % 30 == 1) ? 0 : byte; }];
  2. - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { [imageView glitchWithBlock:^int (int byte,

    int index, uint length, Byte *bytes) { return (byte == 42 && arc4random() % 300 == 1) ? 0 : byte; }]; %&.0