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

The Art of Creative Coding

The Art of Creative Coding

Atsushi Tadokoro

May 29, 2014
Tweet

More Decks by Atsushi Tadokoro

Other Decks in Technology

Transcript

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

    ଟຎඒज़େֶɺ౦ژ᥁ज़େֶ ͳͲ ‣ ࡢ೥౓͔Βɺ੓ࡦɾϝσΟΞݚڀՊത࢜աఔࡏ੶
  2. ೥લʹλΠϜεϦοϓ ‣ ೥લͷʮ˞ΤϛϡϨʔλʔʯΛҎԼ͔Βμ΢ϯϩʔυ ‣ IUUQWJDFFNVTPVSDFGPSHFOFU ! ! ! ! !

    ! ! ! ! ‣ ˞ΤϛϡϨʔλʔ͋ΔγεςϜ্Ͱଞͷ04΍$16ͷػೳΛ࠶ݱ͠ɺͦͷ04 $16 ޲͚ͷΞϓϦέʔγϣϯιϑτΛಈ࡞ͤ͞Διϑτ΢ΣΞ WJDF
  3. ೥લʹλΠϜεϦοϓ ‣ ೥୅౰࣌ͷύʔιφϧίϯϐϡʔλ ‣ γεςϜΛىಈ͢Δͱɺ#"4*$ΤσΟλʔ͕දࣔ͞ΕΔ ‣ ॳظը໘͕ɺϓϩάϥϛϯά؀ڥͩͬͨ   !

    ‣ ౰࣌ͷύιίϯͷ30.ʹ͸ɺ#"4*$ΠϯλϓϦλʔ ίϯϐϡʔλͷϓϩάϥϜΛ࣮ ߦ͢Διϑτ΢ΣΞ ͕಺ଂ͞Ε͍ͯͨ ‣ #"4*$ϚΠίϯʹ͓͚Δඪ४ݴޠ ‣ ϚΠΫϩιϑτ༂ਐͷ࢝·Γ
  4. $PNNPEPSͰδΣωϥςΟϒͳදݱʹ௅ઓ ‣ ͜͜·Ͱͷ஌ࣝΛ࢖༻ͯ͠ɺ$PNNPEPSͰδΣωϥςΟϒ (FOFSBUJWFੜ੒ త ͳදݱʹ௅ઓ ‣ ҎԼͷϓϩάϥϜΛೖྗ ! !

    ! ! ‣ ্ͷϓϩάϥϜ͸ɺҎԼͷߦʹ୹ॖͯ͠΋ಉ͡ҙຯ 10 PRINT CHR$(205.5+RND(1)); 20 GOTO 10 RUN 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 RUN
  5. $PNNPEPSͰδΣωϥςΟϒͳදݱʹ௅ઓ ‣ ͳͥɺ͜ͷ໛༷͕ੜ੒͞ΕΔͷ͔  ! ‣  3/%  ˠʙͷϥϯμϜͳ਺Λੜ੒

    ‣ $)3 ʜ Ͱ͸ɺׅހ಺ͷ਺͸࢛ࣺޒೖ͞ΕΔ ‣ 㱡Oˠ ‣ 㱡Oˠ ‣ ͭ·Γɺͱ͕ͷ֬཰Ͱੜ੒͞ΕΔ ! ‣ ͷจࣈ͸ʮaʯ ‣ ͷจࣈ͸ʮʯ ‣ ͜ͷͭͷจࣈͷ૊Έ߹ΘͤͰɺύλʔϯ͕ੜ੒͞Ε͍ͯΔ ! ‣ ͷ਺஋ΛมԽͤͯ͞ΈΔ
  6. $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
  7. ղ౴ྫ ‣ 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); } } }
  8. ͜͜·Ͱͷ·ͱΊ ‣ ʮύιίϯʯΧϧνϟʔᴈ໌ظʙ೥୅ ‣ ίϯϐϡʔλΛ࢖͏ϓϩάϥϛϯά͕લఏ ‣ ϓϩάϥϛϯά͢Δָ͠͞ɺتͼ ‣ ίʔυʹΑΔࢥߟ !

    ‣ ʮ1$༷ʑͳ͜ͱ͕ՄೳʹͳΔເͷϚγϯʯͱ͍͏Πϝʔδ ‣ ύιίϯͰ༡ͼͳ͕ΒʮίʔυʹΑΔࢥߟʯ͕ҭ·Ε͍ͯͬͨ