javascript - Scaling along Y-axis after rotating in Pixi.js -


i'm trying create isometric grid rotating square 45° , scaling down on (vertical) y-axis. however, pixi.js i'm using, seem scale along local coordinate system after rotation, resulting in square skewed rather squashed.

is there way sequentially apply transforms (first rotate, scale y) in pixi.js, or method allow me scale along vertical y after rotating?

i'm using .rotation , .scale properties of graphics object transformation.

i came solution myself. not quite wanted, simple solution.

  1. create pixi.container add sprite/graphics to.
  2. rotate sprite/graphics , scale container on y axis.
  3. voilá!

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -