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

デザイン言語総合講座 - クリエイティブ・コーディング

デザイン言語総合講座 - クリエイティブ・コーディング

Atsushi Tadokoro

July 07, 2014
Tweet

More Decks by Atsushi Tadokoro

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ ‣ ాॴ३ ͨͲ͜Ζ͋ͭ͠  ‣ ΫϦΤΠςΟϒɾίʔμʔ  ‣ େֶඇৗۈߨࢣ

    ଟຎඒज़େֶɺ౦ژ᥁ज़େֶ ͳͲ ‣ ࡢ೥౓͔Βɺ੓ࡦɾϝσΟΞݚڀՊത࢜՝ఔࡏ੶
  2. ೥લʹλΠϜεϦοϓ ‣ ೥୅౰࣌ͷύʔιφϧίϯϐϡʔλ ‣ γεςϜΛىಈ͢Δͱɺ#"4*$ΤσΟλʔ͕දࣔ͞ΕΔ ‣ ॳظը໘͕ɺϓϩάϥϛϯά؀ڥͩͬͨ   ‣

    ౰࣌ͷύιίϯͷ30.ʹ͸ɺ#"4*$ΠϯλϓϦλʔ ίϯϐϡʔλͷϓϩάϥϜΛ࣮ ߦ͢Διϑτ΢ΣΞ ͕಺ଂ͞Ε͍ͯͨ ‣ #"4*$ϚΠίϯʹ͓͚Δඪ४ݴޠ ‣ ϚΠΫϩιϑτ༂ਐͷ࢝·Γ
  3. $PNNPEPSͰδΣωϥςΟϒͳදݱʹ௅ઓ ‣ ͳͥɺ͜ͷ໛༷͕ੜ੒͞ΕΔͷ͔  ‣  3/%  ˠʙͷϥϯμϜͳ਺Λੜ੒ ‣

    $)3 ʜ Ͱ͸ɺׅހ಺ͷ਺͸࢛ࣺޒೖ͞ΕΔ ‣ 㱡Oˠ ‣ 㱡Oˠ ‣ ͭ·Γɺͱ͕ͷ֬཰Ͱੜ੒͞ΕΔ ‣ ͷจࣈ͸ʮaʯ ‣ ͷจࣈ͸ʮʯ ‣ ͜ͷͭͷจࣈͷ૊Έ߹ΘͤͰɺύλʔϯ͕ੜ੒͞Ε͍ͯΔ ‣ ͷ਺஋ΛมԽͤͯ͞ΈΔ
  4. $PNNPEPSͰδΣωϥςΟϒͳදݱʹ௅ઓ ‣ ͞ΒʹෳࡶͳύλʔϯΛɺ͍Ζ͍Ζ঺հ͠·͢ 10 PRINT CHR$(204+(INT(RND(1)+.5)*3)); : GOTO 10 10

    PRINT CHR$(204+(RND(1)+.5)*3); : GOTO 10 10 print CHR$(105+(RND(1)+.5)*7); : goto 10 10 print CHR$(200+(RND(1)+.5)*3); : goto 10 10 print CHR$(199+(RND(1)+.5)*3); : goto 10 10 PRINT CHR$(181+(INT(RND(1)+.5)*3)+(INT(RND(1)+.5))); : GOTO 10 10 PRINT CHR$(181+(INT(RND(1)+.5)*3)); : GOTO 10 10 POKE 1024+RND(1)*1000,77.5+RND(1) : GOTO 10
  5. ղ౴ྫ ‣ 13*/5GPS1SPDFTTJOH size(800, 600); int step = 20; for

    (int y = 0; y < height; y += step) { for (int x = 0; x < width; x += step) { if (random(1) > 0.5) { line(x, y, x+step, y+step); } else { line(x, y+step, x+step, y); } } }
  6. ղ౴ྫ ‣ ͞Βʹɺ͍Ζ͍Ζ޻෉ͯ͠ΈΔ void setup() { size(800, 600, P3D); background(0,

    0, 127); stroke(255); tenPrint(10, 2); } void draw() { } void tenPrint(float step, float rnd) { for (int y = 0; y < height; y += step) { for (int x = 0; x < width; x += step) { if (random(1) > rnd) { line(x, y, x+step, y+step); } else { line(x, y+step, x+step, y); } } } } void mouseDragged() { background(0, 0, 127); float rnd = map(mouseX, 0, width, 0, 1); float div = map(mouseY, 0, height, 2, 80); tenPrint(div, rnd); }
  7. ͜͜·Ͱͷ·ͱΊ ‣ ʮύιίϯʯΧϧνϟʔᴈ໌ظʙ೥୅ ‣ ίϯϐϡʔλΛ࢖͏ϓϩάϥϛϯά͕લఏ ‣ ϓϩάϥϛϯά͢Δָ͠͞ɺتͼ ‣ ίʔυʹΑΔࢥߟ ‣

    ʮ1$༷ʑͳ͜ͱ͕ՄೳʹͳΔເͷϚγϯʯͱ͍͏Πϝʔδ ‣ ύιίϯͰ༡ͼͳ͕ΒʮίʔυʹΑΔࢥߟʯ͕ҭ·Ε͍ͯͬͨ
  8. 4XJGU ‣ $ISJT-BUUOFS "QQMF  ‣ 88%$Ͱಥ೗ൃද   ‣

    "QQMF७ਖ਼ɺϓϩάϥϛϯάݴޠ ‣ 0CKFDUJWF$ͷ୅ସΛ໨ࢦ͢
  9. 4XJGU ‣ 4XJGUγϯϓϧͰɺߴੑೳ // Objective-C NSString *str = @"Hello ";

    str = [str stringByAppendingString:@" world"]; // Swift var str = "Hello " str += " world"
  10. "Playgrounds were heavily influenced by Bret Victor's ideas, by Light

    Table and by many other interactive systems."
 - Chris Lattner (Apple)
  11. "Playgrounds were heavily influenced by Bret Victor's ideas, by Light

    Table and by many other interactive systems."
 - Chris Lattner (Apple)
  12. ίʔυཧղͷͨΊͷϥΠϒίʔσΟϯά ‣ 5IFFOWJSPONFOUTIPVMEBMMPXUIFMFBSOFSUP ‣ SFBEUIFWPDBCVMBSZXIBUEPUIFTFXPSETNFBO  ‣ GPMMPXUIFqPXXIBUIBQQFOTXIFO  ‣

    TFFUIFTUBUFXIBUJTUIFDPNQVUFSUIJOLJOH  ‣ DSFBUFCZSFBDUJOHTUBSUTPNFXIFSF UIFOTDVMQU ‣ DSFBUFCZBCTUSBDUJOHTUBSUDPODSFUF UIFOHFOFSBMJ[F ‣ #SFU7JDUPS -FBOBCMF1SPHSBNNJOH