레퍼런스 updatePixels()

updatePixels()

Updates the framebuffer with the RGBA values in the pixels array.

myBuffer.updatePixels() only needs to be called after changing values in the myBuffer.pixels array. Such changes can be made directly after calling myBuffer.loadPixels().

예제

Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/p5.Framebuffer.js and open a pull request!

관련 레퍼런스