Skip to content

Commit 4fe8021

Browse files
authored
Adding Dave's suggestion
1 parent 63cc5a0 commit 4fe8021

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/core/p5.Renderer.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
* @for p5
55
*/
66

7+
/**
8+
* `pInst` may be:
9+
*
10+
* The main sketch-wide `p5` instance (global canvas), or
11+
* an off-screen `p5.Graphics` wrapper.
12+
*
13+
* Therefore a renderer must only call properties / methods that exist
14+
* on both objects.
15+
*/
16+
717
import { Color } from '../color/p5.Color';
818
import * as constants from '../core/constants';
919
import { Image } from '../image/p5.Image';

0 commit comments

Comments
 (0)