iOS/Android tips 共有会 #potatotips 第二回での発表資料
- http://secondlife.hatenablog.jp/entry/2013/12/11/220052
!ʙͦΕ͔͠ͷΑ͏ͳʙid:secondlife @hotchpotchXXXKit
View Slide
id:secondlife @hotchpotch ؘ༞Ұ / Yuichi Tateno worked at Cookpad—Ruby
ຑ͔͠
00ਥGVODUJPOBMਥࡾ߲ԋࢉࢠਥςετਥMBNCEBਥΫϩʔδϟਥΠϯλʔϑΣΠεਥύλʔϯਥϝλϓϩάϥϛϯάਥࣗಈԽਥఆϨΠΞਥਖ਼نදݱਥ
00ਥGVODUJPOBMਥࡾ߲ԋࢉࢠਥςετਥMBNCEBਥΫϩʔδϟਥΠϯλʔϑΣΠεਥύλʔϯਥϝλϓϩάϥϛϯάਥࣗಈԽਥఆϨΠΞਥਖ਼نදݱਥJ04ʹ͓͚Δ͔͠ͱʁ
00ਥGVODUJPOBMਥࡾ߲ԋࢉࢠਥςετਥMBNCEBਥΫϩʔδϟਥΠϯλʔϑΣΠεਥύλʔϯਥϝλϓϩάϥϛϯάਥࣗಈԽਥఆϨΠΞਥਖ਼نදݱਥJ04ʹ͓͚Δ͔͠ͱʁΧςΰϦ
00ਥGVODUJPOBMਥࡾ߲ԋࢉࢠਥςετਥMBNCEBਥΫϩʔδϟਥΠϯλʔϑΣΠεਥύλʔϯਥϝλϓϩάϥϛϯάਥࣗಈԽਥఆϨΠΞਥਖ਼نදݱਥJ04ʹ͓͚Δ͔͠ͱʁΧςΰϦ9YY,JU
ΧςΰϦ(MJUDI,JU
#import "GlitchKit.h"![imageView glitch];
[imageView glitchWithBlock:^int(int byte, int index, uint length, Byte *bytes) {return (byte == 42) ? 0 : byte;}];
[imageView glitchWithBlock:^int(int byte, int index, uint length, Byte *bytes) {return (byte == 43) ? 0 : byte;}];
[imageView glitchWithBlock:^int(int byte, int index, uint length, Byte *bytes) {return (byte == 42 && arc4random() % 30 == 1) ?0 : byte;}];
- (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
HJUIVCDPNIPUDIQPUDI(MJUDI,JU