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

UIViewで光の三原色の混ざり合いを表現したい / potatotips 75 Blend Mode

M"e
August 12, 2021

UIViewで光の三原色の混ざり合いを表現したい / potatotips 75 Blend Mode

M"e

August 12, 2021
Tweet

More Decks by M"e

Other Decks in Programming

Transcript

  1. 6*7JFXͰޫͷࡾݪ৭ͷࠞ͟Γ߹͍ Λදݱ͍ͨ͠ QPUBUPUJQT ͑ΜͲ͏גࣜձࣾ;0;0ςΫϊϩδʔζ

  2. 3(#@$-0$, ੺ɺ྘ɺ੨ͷ਑͕ॏͳΔͱɺޫͷࡾݪ৭ͷ 
 ࠞ͟Γ߹ָ͍͕͠ΊΔ࣌ܭ IUUQTHJUIVCDPN&OEPV.BSJ3(#@$-0$, ݩωλIUUQTUXJUUFSDPNNJUJSVYYYTUBUVT 

  3. ޫͷࡾݪ৭ͷࠞ͟Γ߹͍͸"MQIBઃఆͰ͸දݱͰ͖ͳ͍ MFUSFE7JFX6*7JFX  SFE7JFXCBDLHSPVOE$PMPSSFE MFUHSFFO7JFX6*7JFX  HSFFO7JFXCBDLHSPVOE$PMPSHSFFO HSFFO7JFXBMQIB MFUCMVF7JFX6*7JFX 

    CMVF7JFXCBDLHSPVOE$PMPSCMVF CMVF7JFXBMQIB
  4. ࠓ೔࿩͢͜ͱ 6*7JFXͰޫͷࡾݪ৭ͷࠞ͟Γ߹͍Λ දݱ͢Δํ๏ʹ͍ͭͯ

  5. දݱ͍ͨ͜͠ͱ 7JFX͕ॏͳ͍ͬͯΔՕॴͷ৭Λ ม͍͑ͨ ੺ ྘ˠԫ৭ ੺ ྘ ੨ˠന ॏͳΔͱ໌Δ͘ͳΔ

  6. ॏͳͬͨ7JFXͷඳը ॏͳ্ͬͨͷWJFX͕ 
 ͦͷ··දࣔ͞Ε͍ͯΔ

  7. ॏͳ্ͬͨͷWJFX͕ 
 ͦͷ··දࣔ͞Ε͍ͯΔ ॏͳͬͨ7JFXͷඳը ͕͜͜มΘΕ͹࣮ݱͰ͖Δ ͦͷ··Ͱ͸ͳ͘ɺ৭Λม͑ͯදࣔͯ͠ཉ͍͠

  8. ॏͳͬͨ7JFXΛ 
 Ͳ͏ඳը͢Δ͔ͷํ͕ࣜ͋Δ

  9. #MFOE.PEF

  10. #MFOE.PEFͬͯԿʁ ͭͷϨΠϠʔ͕ޓ͍ʹͲͷΑ͏ʹ߹੒͞ΕΔ͔Λ ܾఆ͢ΔͨΊͷઃఆ /PSNBMɺ.VMUJQMZɺ4DSFFOɺɾɾɾFUD ߹੒͢Δܭࢉ͕ࣜ͋Δ

  11. എܠ લܠ ࢀߟIUUQTEFWFMPQFSBQQMFDPNMJCSBSZBSDIJWFEPDVNFOUBUJPO(SBQIJDT*NBHJOH$PODFQUVBMESBXJOHXJUIRVBSU[EER@JNBHFTER@JNBHFTIUNM

  12. લܠͷWJFX͕ͦͷ··දࣔ͞ΕΔ G എܠ৭ લܠ৭ લܠ৭ 2VBSU[ͷσϑΥϧτઃఆ /PSNBM#MFOE.PEF

  13. എܠͷ৭ͱલܠͷ৭ͷ৐ࢉ G എܠ৭ લܠ৭ എܠ৭ લܠ৭ ݁Ռͷը૾ͷ৭͸҉͘ͳΔ .VMUJQMZ#MFOE.PEF

  14. എܠͷ൓సͨ͠৭ͱલܠͷ൓సͨ͠ ৭ͷ৐ࢉ G എܠ৭ લܠ৭  
 ɹɹɹɹɹ എܠ৭ લܠ৭

     ॏͶΔͱݩͷը૾ΑΓ໌Δ͘ͳΔ 4DSFFO#MFOE.PEF
  15. 7JFXΛॏͶͨͱ͖ʹ໌Δ͍ͨ͘͠ͷͰ 4DSFFO#MFOE.PEFΛ࢖༻

  16. Ͳ͏΍ͬͯઃఆ͢Δͷ͔ʁ

  17. $($POUFYUͷTFU#MFOE.PEF PWFSSJEFGVODESBX @SFDU$(3FDU \ ੺ԁΛඳը DPOUFYUCFHJO1BUI  DPOUFYUBEE&MMJQTF JOSFDU 

    DPOUFYUDMPTF1BUI  DPOUFYUTFU'JMM$P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JFXMBZFSDPNQPTJUJOH'JMUFSTDSFFO#MFOE.PEF
  24. DPNQPTJUJOH'JMUFS

  25. DPNQPTJUJOH'JMUFS

  26. ਑͕ॏͳͬͨͱ͖ͷ ޫͷࡾݪ৭ͷࠞ͟Γ߹͍Λ࠶ݱͰ͖ͨ✨

  27. ·ͱΊ 7JFX͕ॏͳ͍ͬͯΔͱ͖Ͳ͏ඳը͢Δ͔͸#MFOE.PEFͰܾ ΊΔ͜ͱ͕Ͱ͖Δ 4DSFFO#MFOE.PEFΛ࢖༻͢Δͱޫͷࡾݪ৭ͷࠞ͟Γ߹͍ ͱࣅ͍ͯΔ݁ՌʹͳΔ $($POUFYUͷTFU#MFOE.PEF͸ઃఆͨ͠#MFOE.PEFͰඳը ͨ݁͠ՌΛಘΒΕΔ 7JFXʹ#MFOE.PEFΛઃఆ͢Δʹ͸$"-BZFSͷ DPNQPTJUJOH'JMUFSΛ࢖༻͢Δ

  28. 5IBOLZPV