This feature requires the p5.webgpu.js addon.
이 API는 실험적입니다
향후 p5.js 버전에서 동작이 변경될 수 있습니다.
Replaces the contents of the list with new data from JavaScript, updating the element count to match.
For a list of numbers, update takes in an array of numbers (or a Float32Array.) For a list of objects, pass an array of plain objects with the same properties present as when you created the list.
예제
구문
update(data)
매개변수
data
Number[]|Float32Array|Object[]: The new data to write.
Notice any errors or typos? Please let us know. Please feel free to edit src/webgpu/p5.RendererWebGPU.js and open a pull request!