Spinning Squares - 07/11/22
•
A simple Processing sketch to show how easy it is to create an interesting visual.
With a basic for loop that rotates squares on the X, Y & Z axis, with each square turning ever so slightly like it has a delayed effect & each one bigger than the last & the border lines going from thin to thick
It could be extended to allow OSC control with your phone/tablet, or audio reactive. You could try different colors for each square & maybe fill them in so they are a solid shape.
The limits are endless, with a simple beginning
Sound design was created in post production, using the REAPER DAW & Native Instruments REAKTOR along with some other effects
We will be posting more visual ideas & code for you to try in the mean time before we see you on Monday 14th November at Hyde Park Book Club for the code meet-up & workshop
See you soon & happy coding
🖤
```
float time = 0.0;
void setup(){
size(640, 480, P3D);
surface.setResizable(true);
frameRate(60);
}
void draw(){
background(255);
noFill();
translate(width / 2, height / 2);
for (int i = 0; i < 12; i++){
rotateX(time / 300);
rotateY(time / 365);
rotateZ(time / 480);
strokeWeight(0.3 * i);
rect(0 - 16 * i, 0 - 16 * i, 32 * i, 32 * i);
}
time++;
}
```
#oculardose #oculardosecollective #jointhecollective #processing #sketch #processingsketch #code #coding #learning #basics #sounddesign #sound #music #nativeinstruments #reaktor #audio #hydeparkbookclub #visuals #reaper #reaperdaw #DAW
•
A simple Processing sketch to show how easy it is to create an interesting visual.
With a basic for loop that rotates squares on the X, Y & Z axis, with each square turning ever so slightly like it has a delayed effect & each one bigger than the last & the border lines going from thin to thick
It could be extended to allow OSC control with your phone/tablet, or audio reactive. You could try different colors for each square & maybe fill them in so they are a solid shape.
The limits are endless, with a simple beginning
Sound design was created in post production, using the REAPER DAW & Native Instruments REAKTOR along with some other effects
We will be posting more visual ideas & code for you to try in the mean time before we see you on Monday 14th November at Hyde Park Book Club for the code meet-up & workshop
See you soon & happy coding
🖤
```
float time = 0.0;
void setup(){
size(640, 480, P3D);
surface.setResizable(true);
frameRate(60);
}
void draw(){
background(255);
noFill();
translate(width / 2, height / 2);
for (int i = 0; i < 12; i++){
rotateX(time / 300);
rotateY(time / 365);
rotateZ(time / 480);
strokeWeight(0.3 * i);
rect(0 - 16 * i, 0 - 16 * i, 32 * i, 32 * i);
}
time++;
}
```
#oculardose #oculardosecollective #jointhecollective #processing #sketch #processingsketch #code #coding #learning #basics #sounddesign #sound #music #nativeinstruments #reaktor #audio #hydeparkbookclub #visuals #reaper #reaperdaw #DAW