Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

processing.js

  • Loading branch information...
commit 5584f36b01d747fb7cb6be6bfe29adcda3a18a17 1 parent df51b7c
@archanasahota archanasahota authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 processing.js
View
10 processing.js
@@ -3104,26 +3104,33 @@
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],
@@ -3131,6 +3138,7 @@
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;
Please sign in to comment.
Something went wrong with that request. Please try again.