pattern of points as backgroun in processing.js canvas
in
Processing with Other Languages
•
9 months ago
Hi list, I need to ad a pattern of points as background of my processing.js canvas.
I can do it with processing.js for example:
The problem is that i need to do it inside draw{} and it consumes a lot of cpu, so i was wondering that instead of doing it with code , using a pic with my point pattern as background in my processing.js canvas.
which should be the best approach for this?
S.
I can do it with processing.js for example:
- for (int i=0;i< 32; i++){
- for (int j=0;j< 56; j++){
point(j * 30, i * 30 ) ;
}
}
The problem is that i need to do it inside draw{} and it consumes a lot of cpu, so i was wondering that instead of doing it with code , using a pic with my point pattern as background in my processing.js canvas.
which should be the best approach for this?
S.
1