MCPcopy Index your code
hub / github.com/processing/p5.js / setCurrentData

Method setCurrentData

src/webgl/p5.Geometry.js:1839–1845  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

1837 },
1838 //Setters
1839 setCurrentData(data) {
1840 const size = data.length ? data.length : 1;
1841 // if (size != this.getDataSize()){
1842 // p5._friendlyError(`Custom vertex property '${this.name}' has been set with various data sizes. You can change it's name, or if it was an accident, set '${this.name}' to have the same number of inputs each time!`, 'vertexProperty()');
1843 // }
1844 this.currentData = data;
1845 },
1846 // Utilities
1847 pushCurrentData(){
1848 const data = this.getCurrentData();

Callers 3

constructFromContoursMethod · 0.80
_tesselateShapeMethod · 0.80
vertexPropertyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected