Coding Challenge #4: Purple Rain in Processing
wie Sie tun, machen, Film, Beispiel
12m 14sLänge
In this viewer submitted Coding Challenge, I attempt to code a Purple Rain Simulator in Processing. Send me your Coding Challenge ideas! Source Code For This Challenge: Processing: https://github.com/CodingTrain/Rainbow-Code/tree/master/challenges/CC_04_PurpleRain p5.js: https://github.com/CodingTrain/Rainbow-Code/tree/master/challenges/CC_04_PurpleRain_p5.js Contact: http://twitter.com/shiffman Processing: https://processing.org For More Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH Help us caption & translate this video! http://amara.org/v/Qbs7/
Kommentare
-
why would the rain be so different speeds...... That's not how gravity works
-
gravity should not be mapped according to z since the acceleration is not influenced by the objects weight ;)
-
Can someone tell me why my code isn't working? It says random is not defined, i'm using p5.js? Just want loads of red circles in random positions on the screen. TIA
var mc = 100;
var circles = [];
function setup() {
createCanvas(800,800);
background(0);
}
for (i = 0; i < mc; i++) {
circles.push({
x: random(0, width),
y: random(0, height),
diameter: random() * 1,
})
}
function draw() {
fill(255,0,0);
for (i = 0; i < mc; i++)
{
var c = circles[i];
ellipse(c.x, c.y, c.diameter, c.diameter);
}
} -
where is fez? XD
-
as a guitarist Drop d made me kek
-
I learn more with your video than my school in France ^^
-
chocolate rain
-
i wish i had you as my teacher when i 1st started learning programming.
-
Can I ask for this IDE?
-
this is java??
-
and why would rain fall slower bc it's further away? not realistic as it could be but a very good example of simple code
-
yspeed=1
I what does the 1 represent? one inch of screen per second? how does the program know how fast to move the rain -
Awesome! Subscribed.
-
wow..how u dothat in a minute :P ... love ur programming skill...
-
whyyyyyyyyy use pythone i dont know java
-
why would i do this when i can make this in After Effects
jk i know this is coding and shit
i know html and a little little bit of JavaScript so i know what im saying jk i dont
some tips on java script -
RainDrop
-
Some variety in my Youtube finally!
-
You are awesome bro. you got a new subscriber :)