Skip to content

Commit 0be7c5d

Browse files
author
Lauren McCarthy
committed
Merge pull request #634 from chst1/master
Added noTint() example
2 parents 3a9959e + 90e4a99 commit 0be7c5d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/image/loading_displaying.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,21 @@ define(function (require) {
228228
* displaying images with their original hues.
229229
*
230230
* @method noTint
231+
* @example
232+
* <div>
233+
* <code>
234+
* var img;
235+
* function preload() {
236+
* img = loadImage("assets/laDefense.jpg");
237+
* }
238+
* function setup() {
239+
* tint(0, 153, 204); // Tint blue
240+
* image(img, 0, 0);
241+
* noTint(); // Disable tint
242+
* image(img, 50, 0);
243+
* }
244+
* </code>
245+
* </div>
231246
*/
232247
p5.prototype.noTint = function() {
233248
this._tint = null;

0 commit comments

Comments
 (0)