Forked from: FumioNonaka's EaselJS 0.7.0: Rotating coordinates with the Matri View Diff (27)

Fork
1
Fav
0
View
5980
  • Play

Fullscreen

Smart Phone

Fork tree

  • Readme
  • JavaScript 83 lines
  • HTML 2 lines
  • CSS 14 lines

gihyo.jp連載「HTML5のCanvasでつくるダイナミックな表現―CreateJSを使う」
第17回「簡単なクラスを定義する
コード2「冒頭に3次元座標のクラスと透視投影のメソッドを定義したy軸で星形が回るアニメーション


The new Matrix2D.transformPoint() method of EaselJS 0.7.0 transforms xy coordinates of Point objects. This code rotates x and z of 3D coordinates with the method. Then, wireframe's star is being rotated around the y axis.

  • EaselJS 0.7.0: Rotating coordinates with the Matrix2D.transformPoint() method
  • EaselJS 0.7.0: Rotating coordinates with the Matrix2D.transformPoint() method

play

Complete!

Description What kind of game?

Control Device

jsdo.it websocket controller

Mouse

keyboard

smartphone

Fullscreen

Default Panel

Size

  • Width: px
  • Height: px

code

QR Code

Discussion

Questions on this code?

Tags

Forked

sort by