2.1: Variables in p5.js (mouseX, mouseY) - p5.js Tutorial

preview_player
Показать описание


References:

Timestamps:
0:00 Introduction
2:22 Let's simplify!
3:16 What is a variable?
4:47 What's happening here?
5:26 What could we do? Let's make a simple painting program!
6:05 Let's move background into setup. What do you think is gonna happen?
6:34 Why does that happen?
7:31 Let's talk about events! We can add a mousePressed function.
8:41 Let's add mousePressed and put background in it!
9:07 You might have this question. Why isn't it flickering?
10:10 What can you try? Can't wait to see what you create!

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

#mouseinteraction #basics #variables #p5js #javascript
Рекомендации по теме
Комментарии
Автор

Are you a GOD or what? Yesterday I watched your whole Chrome Extension Series where you gave a huge amount of knowledge in just 11 videos, so it took me 1 day to digest that...and today morning I watched your videos of ( 1.1 p5.js) of 2015 which blew my mind and today itself you uploaded 2.1 of p5.js ....you are totally in my head !!! I know Your CONTENT IS FULL Of KNOWLEDGE. ANd the sound of the ring is not going out of my head.

agrawalhimanshu
Автор

Totally had a blast. Your lectures are small, fun and the best.

VaishuPado
Автор

I really love your videos and your a great inspiration for me to start p5, and I never got bored seeing your video, pls don't ever stop doing this videos

nithinkanna
Автор

I am going to watch this even though I have seen the old version, just cant miss your videos. Especially when I get three consecutive videos as a treat!

Roknok
Автор

It's really great to hang out with your videos and code along Dan. I'm not completely new to programming, but learning along with you is really refreshing and I'm excited to see where p5.js leads. I've just found they have a well maintained npm package to!

youngun
Автор

You made the coding very simple thing. You are great.

adityakr.
Автор

I’m loving your way to explain you’re very funny and entertaining

davidmiranda
Автор

From teaching/learning standpoint of view, p5 makes animation so easy. I know that many young parents have difficulty when choosing a programming language for their kids to start, python or java or c++ or something else? Here you are: p5.

goldthumb
Автор

My favorite class up to now, thanks a lot!

nioniostopmo
Автор

He kind of looks like Serj from System Of A Down, I love it :3

Ramen_Head__
Автор

this is fascinating videos. I am learning a lot, for my work as mathematician!! Thank you!!!

osmermontilla
Автор

I can't believe that when I saw your hair turn white, my eyes were wet. I like you very much! I'm currently learning the icm class in ITP. I was scared of coding when I was in first day of class, but watching your video after class made me very relaxed, and I have a desire to continue learning. You are really humorous and energetic. I hope you will always be so happy and never grow old!!!

cocoma
Автор

1:56 That's exactly what we're about to do with my old computer 😂
(Got a Mac Mini btw, my old Windows computer was making a stupid noise and we couldn't stop it, and it was also from 2015 so it made sense)
(EDIT: Literally a few minutes after I wrote this comment, our Apple keyboard arrived 🤣)

SimonTiger
Автор

Feedback: the part when you beautifully explain the flow of p5.js is the most important one. Therefore, imo, the video should be called "p5.js flow and variables" or do two separate videos. Personally, the 1st option is the simplest and best. Love you and you're one of my fav teachers of all the infinite parallel universes of eternity.

morelight
Автор

I will never understand the mechanisms impenetrable to the mind by which you number your videos :'(

HectaSpyrit
Автор

Thank you for this big, important video!!!!

trysmarter
Автор

Hey Dan, I'm working through your intro series (very much enjoying it, thank you for investing all this time and energy). Just to let you know, when I followed the end of video in-screen link that appears at the end of 1.6, it took me to an old version of 2.1 (sirens in background give a great startup feel). I was surprised to come back to the playlist pane in the top right of the YouTube interface to find you have also reworked module 2.

leyshonrr
Автор

These videos are very helpful, thank you so much

enigmaticpuzzle
Автор

"It is a very sad life for the number 200, it can never be anything but the number 200 itself."

nconda
Автор

THIS COURSE got me the profile picture for this account😺 It can also blink with mouse.

沈仲元
join shbcf.ru