Skip to content

Commit f27ffbb

Browse files
author
Lauren McCarthy
committed
fixes #1193
1 parent 742612d commit f27ffbb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/color/creating_reading.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ p5.prototype.brightness = function(c) {
115115
* (default is 0-100)
116116
* @return {Array} resulting color
117117
*
118-
* @alt
118+
* @alt
119119
* This is alt text for example 1.
120120
* This is alt text for example 2.
121121
* This is alt text for example 3.

src/core/core.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,6 @@ var p5 = function(sketch, node, sync) {
339339
time_since_last >= target_time_between_frames - epsilon) {
340340

341341
//mandatory update values(matrixs and stack)
342-
this.resetMatrix();
343-
if(this._renderer.isP3D){
344-
this._renderer._update();
345-
}
346342

347343
this._setProperty('frameCount', this.frameCount + 1);
348344
this.redraw();

src/core/structure.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,11 @@ p5.prototype.popStyle = function() {
303303
* </code></div>
304304
*/
305305
p5.prototype.redraw = function () {
306+
this.resetMatrix();
307+
if(this._renderer.isP3D){
308+
this._renderer._update();
309+
}
310+
306311
var numberOfRedraws = 1;
307312
if (arguments.length === 1) {
308313
try {

0 commit comments

Comments
 (0)