Skip to content

Commit 74489cf

Browse files
author
lauren mccarthy
committed
fixing broken tint
1 parent 51d1a5a commit 74489cf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/js/p5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ var imageloading_displaying = function (require, core, filters, canvas, constant
18331833
}
18341834
};
18351835
p5.prototype.tint = function () {
1836-
var c = this.getNormalizedColor.call(this, arguments);
1836+
var c = p5.Color.getNormalizedColor.apply(this, arguments);
18371837
this._tint = c;
18381838
};
18391839
p5.prototype.noTint = function () {

lib/p5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ var imageloading_displaying = function (require, core, filters, canvas, constant
18331833
}
18341834
};
18351835
p5.prototype.tint = function () {
1836-
var c = this.getNormalizedColor.call(this, arguments);
1836+
var c = p5.Color.getNormalizedColor.apply(this, arguments);
18371837
this._tint = c;
18381838
};
18391839
p5.prototype.noTint = function () {

lib/p5.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/image/loading_displaying.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ define(function (require) {
154154
* </div>
155155
*/
156156
p5.prototype.tint = function() {
157-
var c = this.getNormalizedColor.call(this, arguments);
157+
var c = p5.Color.getNormalizedColor.apply(this, arguments);
158158
this._tint = c;
159159
};
160160

0 commit comments

Comments
 (0)