This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int num_rays = 100; | |
PVector[] pos = new PVector[num_rays]; | |
PVector[] vel = new PVector[num_rays]; | |
void setup(){ | |
size(1000, 1000); | |
background(20); | |
for(int i = 0; i < num_rays; i++){ | |
float y = map(i, 0, num_rays, -radius+10, radius-10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup(){ | |
size(1000, 1000); | |
} | |
float c = 0.5; | |
float mathf(float x){ | |
return x * c; | |
} | |
float radius = 300; |