GlitchKit

 GlitchKit

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

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

2997ec7879942bd0415690c85731e328?s=128

Yuichi Tateno

December 11, 2013
Tweet

Transcript

  1. 3.
  2. 10.
  3. 11.
  4. 16.

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

    { return (byte == 42 && arc4random() % 30 == 1) ? 0 : byte; }];
  5. 17.

    - (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