Skip to content

Commit 6dbbf11

Browse files
committed
Add links to p5.Framebuffer.pixels
1 parent 7be7607 commit 6dbbf11

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/webgl/p5.Framebuffer.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,15 @@ class Framebuffer {
111111
/**
112112
* An array containing the color of each pixel in the framebuffer.
113113
*
114-
* `myBuffer.loadPixels()` must be called before accessing the
115-
* `myBuffer.pixels` array. `myBuffer.updatePixels()` must be called after
116-
* any changes are made.
114+
* <a href="#/p5.Framebuffer/loadPixels">myBuffer.loadPixels()</a> must be
115+
* called before accessing the `myBuffer.pixels` array.
116+
* <a href="#/p5.Framebuffer/updatePixels">myBuffer.updatePixels()</a>
117+
* must be called after any changes are made.
117118
*
118119
* Note: Updating pixels via this property is slower than drawing to the
119-
* framebuffer directly. Consider using a shader instead of looping over
120-
* pixels.
120+
* framebuffer directly. Consider using a
121+
* <a href="#/p5.Shader">p5.Shader</a> object instead of looping over
122+
* `myBuffer.pixels`.
121123
*
122124
* @property {Number[]} pixels
123125
*

0 commit comments

Comments
 (0)