I wanted to show a rotating wheel with an oblique view.
I failed to produce that directly with Hype and thus I used javascript.
<http://alain.filhol1.perso.sfr.fr/HTML5/Chopper/chopperJS.html>
the Hype files are here
<http://alain.filhol1.perso.sfr.fr/HTML5/Chopper/AF-Chopper-Sources.zip
The main trick in the javascript code is the line:
elem.style.WebkitTransform = "translate("+c_left+"px,"+c_top+"px) scale("+c_xScale+",1.0) rotate("+degrees+"deg)";
with “Translate” “Scale” “Rotate” being performed one after the other at each time step.
i.e: at each step the circle is rotated, then deformed to an ellipse, then translated
Note that the order is important here and, even if this is odd, I got the impression that they are executed from the right to the left.
My questions is:
Is it possible to do the same thing directly with Hype, i.e. without using javascript ?
As far as I can see:
Hype does not makes it possible to change the order of actions
Hype will not repeat the actions at each step
Thank you for your help.