Permalink
Browse files

processing.js

  • Loading branch information...
1 parent df51b7c commit 5584f36b01d747fb7cb6be6bfe29adcda3a18a17 @archanasahota archanasahota committed Dec 12, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 processing.js
View
@@ -3104,33 +3104,41 @@
this.params[6], this.params[7]);
} else if (this.kind === PConstants.RECT) {
if (this.image !== null) {
+ var imMode = imageModeConvert;
p.imageMode(PConstants.CORNER);
p.image(this.image,
this.params[0],
this.params[1],
this.params[2],
this.params[3]);
+ imageModeConvert = imMode;
} else {
+ var rcMode = curRectMode;
p.rectMode(PConstants.CORNER);
p.rect(this.params[0],
this.params[1],
this.params[2],
this.params[3]);
+ curRectMode = rcMode;
}
} else if (this.kind === PConstants.ELLIPSE) {
+ var elMode = curEllipseMode;
p.ellipseMode(PConstants.CORNER);
p.ellipse(this.params[0],
this.params[1],
this.params[2],
this.params[3]);
+ curEllipseMode = elMode;
} else if (this.kind === PConstants.ARC) {
+ var eMode = curEllipseMode;
p.ellipseMode(PConstants.CORNER);
p.arc(this.params[0],
this.params[1],
this.params[2],
this.params[3],
this.params[4],
this.params[5]);
+ curEllipseMode = eMode;
} else if (this.kind === PConstants.BOX) {
if (this.params.length === 1) {
p.box(this.params[0]);
@@ -8010,7 +8018,7 @@
doStroke = oldState.doStroke;
currentStrokeColor = oldState.currentStrokeColor;
curTint = oldState.curTint;
- curRectMode = oldState.curRectmode;
+ curRectMode = oldState.curRectMode;
curColorMode = oldState.curColorMode;
colorModeX = oldState.colorModeX;
colorModeZ = oldState.colorModeZ;

0 comments on commit 5584f36

Please sign in to comment.