Permalink
Browse files

#69 rotate(), #126 rotateZ(), #127 rotateX(), #128 rotateY

  • Loading branch information...
1 parent e6e6189 commit 9808c8e5329a784131f395435ee1c6ba540571c4 @annasob committed Feb 12, 2010
Showing with 11 additions and 11 deletions.
  1. +11 −11 processing.js
View
@@ -1162,10 +1162,6 @@
p.scale = function scale(x, y) {
curContext.scale(x, y || x);
};
- p.rotate = function rotate(aAngle) {
- curContext.rotate(aAngle);
- };
-
p.pushMatrix = function pushMatrix() {
if (p.use3DContext) {
userMatrixStack.load(modelView);
@@ -1186,18 +1182,22 @@
forwardTransform.reset();
};
- p.rotateX = function(angleInRadians) {
- forwardTransform.rotateX(angleInRadians);
+ p.rotateX = function( angleInRadians ) {
+ forwardTransform.rotateX( angleInRadians );
};
- p.rotateZ = function(angleInRadians) {
- forwardTransform.rotateZ(angleInRadians);
+ p.rotateZ = function( angleInRadians ) {
+ forwardTransform.rotateZ( angleInRadians );
};
- p.rotateY = function(angleInRadians) {
- forwardTransform.rotateY(angleInRadians);
+ p.rotateY = function( angleInRadians ) {
+ forwardTransform.rotateY( angleInRadians );
};
-
+
+ p.rotate = function rotate( angleInRadians ) {
+ forwardTransform.rotateZ( angleInRadians );
+ };
+
p.pushStyle = function pushStyle() {
// Save the canvas state.
curContext.save();

0 comments on commit 9808c8e

Please sign in to comment.