Playground芸

 Playground芸

サンプルコードはこちら
https://github.com/haranicle/TransitionSampler

D72f33c62d4174992d1895ad1a3df9ab?s=128

haranicle

June 08, 2016
Tweet

Transcript

  1. 1MBZHSPVOEܳ TIJCVZBTXJGU !IBSBOJDMF

  2. ࣗݾ঺հ w ݪҰ࢙ɹ ͸Β͔ͣ͠  w !IBSBOJDMF w J04BQQFOHJOFFS w

    OPIBOB *OD
  3. 6*·ΘΓͷίʔυɺ ಛʹ5SBOTJUJPOͷΞχϝʔγϣϯͳͲ͸ τϥΠΤϥʔΛ܁Γฦ͍ͨ͠

  4. 1MBZHSPVOEͩͱίʔυΛॻ͘ͱ ͙͢ʹදࣔ͞ΕΔͷͰɺ ര଎ͰτϥΠΤϥʔΛ܁ΓฦͤΔ

  5. 1MBZHSPVOEܳ

  6. ͦͷ ը૾ϑΝΠϧΛ1MBZHSPVOEͰѻ͏

  7. ը૾ϑΝΠϧΛ1MBZHSPVOEͰѻ͏ w 1MBZHSPVOE಺ͷ3FTPVSDFTϑΥϧμʹը૾ϑΝΠ ϧΛೖΕΔ w 3FTPVSDFTϑΥϧμ഑Լ͸άϧʔϓͰ͸ͳ͘ɺ ϑΥϧμࢀরͳͷͰ஫ҙ
 6**.BHF OBNFElQBUIUPJNBHFpMFz 3FTPVSDFT഑Լʹ

    ϑΝΠϧΛஔ͘
  8. ͦͷ 4XJGUϑΝΠϧ΍GSBNFXPSLΛ 1MBZHSPVOEͰѻ͏

  9. 4XJGUϑΝΠϧ΍GSBNFXPSLΛ1MBZHSPVOEͰѻ͏ w 1MBZHSPVOE಺ͷ4PVSDFTϑΥϧμʹ4XJGUϑΝΠϧ΍ GSBNFXPSLΛೖΕΔ w GSBNFXPSLͷ৔߹͸ɺ1MBZHSPVOEͰ
 JNQPSU\GSBNFXPSL໊^ͱॻ͚͹0, w 1MBZHSPVOEͰ࢖͍͍ͨΫϥε ϝιου

    ϓϩύςΟͳͲ ͸QVCMJDʹ͢Δ͜ͱ 4PVSDFT഑Լʹ ϑΝΠϧΛஔ͘
  10. ͦͷ 4UPSZCPBSEΛ1MBZHSPVOEͰѻ͏

  11. 4UPSZCPBSEΛ1MBZHSPVOEͰѻ͏ w ௨Γͷ΍Γํ w  4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏ w  4UPSZCPBSEΛGSBNFXPSLʹೖΕΔ

  12.  4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏

  13.  4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏ w 4UPSZCPBSEϑΝΠϧΛJCUPPMͰίϯύΠϧ͠ɺ
 4UPSZCPBSEDϑΝΠϧʹ͔ͯ͠Β1MBZHSPVOEͰ࢖ ༻͢Δ w JCUPPMDPNQJMF.Z4UPSZCPBSETUPSZCPBSED .Z4UPSZCPBSETUPSZCPBSE 4UPSZCPBSE

    4UPSZCPBSED 1MBZHSPVOE 3FTPVSDFT JCUPPMͰ ίϯύΠϧ Ҡಈ ֓ཁ
  14. 3FTPVSDFT഑Լʹ 4UPSZCPBSED ϑΝΠϧΛஔ͘ ࣮ߦ݁Ռ  4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏

  15. ͭΒΈ 4UPSZCPBSEͷ7JFX 7JFX$POUSPMMFSͰΧελϜ ͳΫϥεΛ࢖͓͏ͱ͢Δͱʜ ʊਓਓਓਓਓਓਓਓਓਓਓਓਓʊ ʼɹಥવͷ࣮ߦ࣌Τϥʔʂʂɹʻ ʉ:?:?:?:?:?:?:?:?:?:?:?:ʉ 6OLOPXODMBTT\λʔήοτ໊^\Ϋϥε໊^JO*OUFSGBDF#VJMEFSpMF ͭ·ΓΧελϜͳΫϥε͸GSBNFXPSLʹೖΕͯ ͋͛ͳ͍ͱ͍͚ͳ͍

     4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏
  16. 4UPSZCPBSE 4UPSZCPBSED 1MBZHSPVOE 3FTPVSDFT JCUPPMͰ ίϯύΠϧ Ҡಈ 4PVSDFT ΧελϜͳ Ϋϥε

    ߏ੒ GSBNFXPSL Ϗϧυ Ҡಈ ͜ͷΫϥε࢖͏  4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏
  17. 4UPSZCPBSE 4UPSZCPBSED 1MBZHSPVOE 3FTPVSDFT JCUPPMͰ ίϯύΠϧ Ҡಈ 4PVSDFT ΧελϜͳ Ϋϥε

    ߏ੒ GSBNFXPSL Ϗϧυ Ҡಈ ͜ͷΫϥε࢖͏ ͭͷ9DPEFϓϩδΣΫτʹೖΕΔ  4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏
  18. 4UPSZCPBSE 4UPSZCPBSED 1MBZHSPVOE 3FTPVSDFT JCUPPMͰ ίϯύΠϧ Ҡಈ 4PVSDFT ΧελϜͳ Ϋϥε

    ߏ੒ GSBNFXPSL Ϗϧυ Ҡಈ ͜ͷΫϥε࢖͏ ͭͷ9DPEFϓϩδΣΫτʹೖΕΔ ͜͜Λ&NCFEEFE'SBNFXPSLͱ4DSJQUͰࣗಈԽ ͜͜Λ4DSJQUͰࣗಈԽ  4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏
  19. w ΞϓϦͷλʔήοτ w #VJME1IBTFTʹ/FX3VO4DSJQU1IBTFΛ௥Ճ w ҎԼΛ௥ه 4UPSZCPBSEͷίϯύΠϧҠಈΛࣗಈԽ JCUPPMDPNQJMFa QBUIUP.Z1MBZHSPVOEQMBZHSPVOE3FTPVSDFT.Z4UPSZCPBSETUPSZCPBSEDa QBUIUP.Z4UPSZCPBSETUPSZCPBSE

     4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏
  20. w &NCFEEFE'SBNFXPSLͷλʔήοτ w #VJME1IBTFTʹ/FX3VO4DSJQU1IBTFΛ௥Ճ w ҎԼΛ௥ه ΧελϜͳΫϥεͷϏϧυҠಈΛࣗಈԽ DQS\4:.3005^%FCVHJQIPOFTJNVMBUPS\'6--@130%6$5@/".&^a \130+&$5@'*-&@1"5)^QBUIUP.Z1MBZHSPVOEQMBZHSPVOE4PVSDFT 

    4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏
  21. w 9DPEFͷ4DSJQUͰ࢖͑Δ؀ڥม਺Λௐ΂Δʹ͸ YDPEFCVJMEίϚϯυͷTIPX#VJME4FUUJOHT͕ศ ར w ؀ڥม਺ͱ࣮ࡍͷ஋ͷҰཡΛऔಘͰ͖Δ YDPEFCVJMEQSPKFDU\ϓϩδΣΫτσ ΟϨΫτϦ^UBSHFUa
 \λʔήοτ໊^TIPX#VJME4FUUJOHT YDPEFCVJMEXPSLTQBDF\ϫʔΫεϖʔεσ

    ΟϨΫτϦ^a TDIFNF\εΩʔϜ໊^TIPX#VJME4FUUJOHT 5*14  4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏
  22.  4UPSZCPBSEΛGSBNFXPSLʹೖΕΔ

  23. 4UPSZCPBSE 1MBZHSPVOE 3FTPVSDFT 4PVSDFT ΧελϜͳ Ϋϥε ߏ੒ GSBNFXPSL Ϗϧυ Ҡಈ

     4UPSZCPBSEΛGSBNFXPSLʹೖΕΔ
  24. σϞϯετϨʔγϣϯ IUUQTHJUIVCDPNIBSBOJDMF5SBOTJUJPO4BNQMFS

  25. 5SBOTJUJPOΞχϝʔγϣϯͳ͠

  26. 5SBOTJUJPOΞχϝʔγϣϯ͋Γ

  27. ·ͱΊ

  28. ܳ͸਎Λॿ͘ w 6*ͷΞχϝʔγϣϯ͸1MBZHSPVOEͰ֬ೝ͢Δͱ ޮ཰͕͍͍ w 1MBZHSPVOEͰ͸ w ը૾ϑΝΠϧΛѻ͑Δ w 4XJGUϑΝΠϧ΍GSBNFXPSL΋ѻ͑Δ

    w 4UPSZCPBSE΋ѻ͑Δ w 4UPSZCPBSEΛίϯύΠϧ͔ͯ͠Β࢖͏ w 4UPSZCPBSEΛGSBNFXPSLʹೖΕΔ
  29. ͓ΘΓ

  30. ࢀߟ w *OUFSBDUJWF1MBZHSPVOET4XJGU#MPH"QQMF%FWFMPQFS w IUUQTEFWFMPQFSBQQMFDPNTXJGUCMPH JE w 4XJGU5PEBZ`T8PXNPNFOU"EEJOHNFOVTUP QMBZHSPVOETŠ&SJDB4BEVO w

    IUUQFSJDBTBEVODPNTXJGUUPEBZTXPX NPNFOUBEEJOHNFOVTUPQMBZHSPVOET w 9DPEFͷΧελϜϏϧυΞΫγϣϯͰ࢖͑Δ؀ڥม਺ NBUTVLB[TCMPH w IUUQNBUTVLB[IBUFOBCMPHDPNFOUSZ