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

tweenによるアニメーション

kaidouji85
September 26, 2018

 tweenによるアニメーション

JSer.info 400回記念イベント発表スライドです。

kaidouji85

September 26, 2018
Tweet

More Decks by kaidouji85

Other Decks in Technology

Transcript

  1. UXFFOΛ࢖Θͳ͍Ξχϝ UXFFOΛ࢖ΘͣʹɺSFRVFTU"OJNBUJPO'SBNF ͚ͩͰΞχϝʔγϣϯ͢Δ͜ͱ΋Մೳ Α͘ݟΔ΍Γํ͕ͩɺݸਓతʹ͸
 Ξϯνύλʔϯͩͱࢥ͏ const gameLoop = time =>

    { requestAnimationFrame(gameLoop); pos.x += 4; context.clearRect(0, 0, canvas.width, canvas.height); context.drawImage(image, pos.x, pos.y); }; requestAnimationFrame(gameLoop);
  2.    ඵ ඵ ̎ඵ 5XFFO ඵͰҠಈ 9 9

    ࣌ؒ ࣌ؒ 9 9 9 '14 '14