browse OpenProcessing

Confetti
Flashes
Butterflies
browse all>

browse the portfolio of Yser C.

Constellations3D
Butterflies
Flashes
Constellations
Flashes

Flashes

uploaded by
Yser C.
Started as a sketch to mimic Camera flashes, ended as something a little different to study 3D space. Use the mouse to see the sketch from different perspectives, use UP ARROW and DOWN ARROW to control flash speed.
Embed Code
Fave'd by 2 users
Sketch added to your favorites in your portfolio.
You must login/register to add this sketch to your favorites.

comments

source code

Comments

eric
30 Aug 2009, 09:36
wow i like this alot!
just out of curiousity, where in the code does it say to create it in a 'box' shape?
sorry im a little new to java ><
Yser C.
31 Aug 2009, 16:43
Thanks Eric, much appreciated!
If you look at the 'Flash.pde' tab, the 'void display' part is where the code for the shape displayed (either rect or ellipse) lies. Let me know if you need any other clarification (code's a bit messy and inefficient).
eric
31 Aug 2009, 17:33
hmm yea, i was playing around with the code, and i managed to create the shapes to all ellipses. but id like to explore more into the shape when you move around with the mouse? like sorry its a bit hard to explain over internet aahah
but you have a boxy shape, and just thinking if theres a way of creating something like a circly/spherical shape. maybe to do something with a container/float? i dont know ><"
hmm tricky =P
Yser C.
02 Sep 2009, 06:34
do you mean creating a shape within a shape?
You would need to add a bit of code for the shape you want after the code for the shape

like this (the last line will create a circle within the boxes)

if (form>2) {
noStroke();
rectMode(CENTER);
fill(r,g,b,c-150);
rect(x,y,c/15-s,c/15-s);
fill(r,g,b,c-50);
rect(x,y,c/25-s/2,c/25-s/2);
fill(255);
ellipse(x,y,c/35,c/35);
}

Hope this makes sense.
You need to login/register to comment.