이 API는 실험적입니다
향후 p5.js 버전에서 동작이 변경될 수 있습니다.
경고
Use instanceIndex instead.
A function alias for instanceIndex, kept for compatibility. Prefer using instanceIndex directly as a value instead.
Returns the index of the current instance when drawing multiple copies of a shape with model(count).
instanceID() can only be used inside a p5.strands shader callback.
예제
구문
instanceID()
매개변수
반환값
The index of the current instance.
Notice any errors or typos? Please let us know. Please feel free to edit src/strands/p5.strands.js and open a pull request!