File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -526,7 +526,7 @@ class Shader {
526
526
* <a href="#/p5.Graphics">p5.Graphics</a>, as in
527
527
* `myShader.copyToContext(pg)`. The shader can also be copied from a
528
528
* <a href="#/p5.Graphics">p5.Graphics</a> object to the main canvas using
529
- * the `window ` variable, as in `myShader.copyToContext(window )`.
529
+ * the `p5.instance ` variable, as in `myShader.copyToContext(p5.instance )`.
530
530
*
531
531
* Note: A <a href="#/p5.Shader">p5.Shader</a> object created with
532
532
* <a href="#/p5/createShader">createShader()</a>,
@@ -667,7 +667,7 @@ class Shader {
667
667
* pg.shader(original);
668
668
*
669
669
* // Copy the original shader to the main canvas.
670
- * copied = original.copyToContext(window );
670
+ * copied = original.copyToContext(p5.instance );
671
671
*
672
672
* // Apply the copied shader to the main canvas.
673
673
* shader(copied);
You can’t perform that action at this time.
0 commit comments