7.3: Modularity with Functions - Processing Tutorial
ฝัง
- เผยแพร่เมื่อ 29 มิ.ย. 2024
- This video shows how to divide a program into modular pieces with functions.
(Note this video was shot in Fall 2012)
Book: Learning Processing A Beginner's Guide to Programming, Images,Animation, and Interaction
Chapter: 7
Official book website: learningprocessing.com/
Twitter: / shiffman
github.com/shiffman/LearningP...
📄 Code of Conduct: github.com/CodingTrain/Code-o...
To me ; you are a genius.
I am learning JS, but your teaching and the fact you see things not only read thing is fantastic way of catching concepts of loops, functions...
Thanks a lot!
Best Explanation. Awesome super duper.
Just watched your video. Very helpful!!! I have a lot fun and LMAO. Subscribed!!! Thx
a week ago we started to learn algorithm with processing at school, you're video are so helpfull ! thanks for your work, you are amazing
Every time code will be written, but never used, I will now imagine it chillin' in a forrest.
Good job teaching stuff. ^_^
This is a very good video
Hello Daniel,
I am using p5.js to do this example you taught. I want to add a block at the bottom, once the ball hits the block, it will bounce back. The block can be be moved by mouseX, if the block miss hitting the ball, the ball falls off the bottom, so it is like a game. And I also wants to do text "Score: ...", once the ball hits the block, it will get 1 mark. I have been struggling for the solution. Can you help me?
Can you please say how can you make you and laptop screen both on your videos simultaneously ?
you look like Pau Gasol NBA player too!
Whenever I define my functions and put the codes in there, nothing shows on the canvas, please what's the issue
Watch and wait until 7:35 haha
plz tell me header files names this is not executing showing lots of errors
what are the header used?
is hoisting functions bad practice?
can you make a function that calls other functions?
Isn't that the purpose of objects?
Actually here, draw() function is already calling other functions like background(), dispplay() etc
hhhh thank you :)
here is some code for random bubbles
void setup() {
size(500, 500);
}
void draw() {
randomBubbles();
}
void bubbles(float xPos, float yPos, float diam) {
noFill();
strokeWeight(random(1, 5));
stroke(random(0, 255));
ellipse(xPos, yPos, diam, diam);
}
void randomBubbles() {
float x = random(0, width);
float y = random(0, height);
float d = random(0, 30);
bubbles(x, y, d);
}
and thaaaaank you! Mr Shiffman, you are the best
hello i love this codes, i tried it and its beautiful
do you other codes that i can learn more?
No to OOP. Yes to Modular
set.Gunshot == *Skull
No animals were hurt during the filming of this. hahaha
6:09 Nice animated underarm hair
5:47 :)
i love u
lol cool way of teaching
i think you're cute :) heart heart
I literally can just read code
He smoke pot before making videos..