I wish my other classes were as enjoyable as this. Teacher attitude is HUGE part of learning.
@haixiading36962 жыл бұрын
what about your class?
@flournoats8524 Жыл бұрын
Thank you for making my ADD brain not feel so strange. The way you present, as scattered but still on subject, is a godsend.
@davidchristian84735 жыл бұрын
Hey man, 10ku, I did knew NOTHING about p5.js, i didn't knew anything about js to say the true. I did this function setup() { createCanvas(600, 400); // put setup code here } function draw() { background(0,125,55); fill(250,255,0); stroke (250,255,0); strokeWeight(2); quad(300,0,0,200,300,400,600,200); fill(0,0,258); noStroke(); circle(300,200,250,250); // put drawing code here } to thank u. *Keep teaching man.*
@marshallsober2 жыл бұрын
Dan you saved me, without a doubt my peaceful place is this channel. I'm electrotechnical turning to software this year and it had been A REVELATION to stumble on the train and the processing foundation. I had rough times and days and this is my way of calming down listening to you. very often after extensive videos listening of Dan I simply feel better, not necessarily because I code better yet, the teacher is therapeutic to listen to, its so light but yet deep this is proper teaching. You really should go into a python series and learn the matter you teach at the same time. with proper bases and references I'm sure I would learn ALOT even if you are more a java/js expert
@marshallsober2 жыл бұрын
i would suggest to check out the RGB cube if ever you did not before it started making sense after i played with a RGB cubic representation with the central diagonal being the greyscale line...obviously this is basics stuff at best hehe ;)
@animeshbarman56665 жыл бұрын
I can't stop myself liking every video I watch . Really great quality of content s and your passion to teach is helping me learn more and more without any hedache Thank you sir
@Saldus__3 жыл бұрын
Thanks! You are the best coding teacher on the internet. Your lessons are easy to understand and they are very fun! Thank you so much i don't know how i would learn to code without you.
@NitinChauhan-vh2yk5 жыл бұрын
For the level of enthusiasm, I want to have what this guy is having! :P
@samdavepollard2 жыл бұрын
lots of experts can't teach lots of teachers aren't experts and then you get guys like Daniel Shiffman - experts who can bring the subject to life for us learners; they're a gift many thanks
@josephgarza59732 жыл бұрын
Yes they are, indeed they are.
@donaldazevedo5554 Жыл бұрын
Whenever I see him I think this myself. Not only his he very knowledgable, he is an engaging teacher. Clearly this is what he loves so much!
@balsajokic60526 жыл бұрын
Thanks man!Your enthusiasm is sooo motivating. Like, after I see you telling me to do a drawing with all that joy I feel like If i don't do it im the scum of the earth,haha!Thanks!
@forrateam77896 жыл бұрын
This guy is the bob ross of code
@BranchBruh6 жыл бұрын
lol
@fantsypants83135 жыл бұрын
put a happy little smicolon over here
@Raf_Kr5 жыл бұрын
sure is
@Andrii875 жыл бұрын
Today I found out who is Bob Ross. Great tv show!
@TheFishKing644 жыл бұрын
@@Andrii87 you learn something new everyday
@aneye.3 жыл бұрын
You must be one of the smartest guy ever born on this "Earth" . You make things so easily that no one ever dare to skip your class.
@brinalrumao82514 жыл бұрын
Your teaching skills are just superb,no room for doubts at all as we cannot have any after watching such awsome amd detailed videos
@anupamagupta18853 жыл бұрын
I love how he remains that much excited everytime
@drkmgoswami30424 жыл бұрын
I start my coding journey from coding training thank you are pro
@YuvanshVarshney-i8k6 ай бұрын
i think that you are the best teacher there and this was the most helpful vid
@thomasgardner8383 жыл бұрын
Incredible, I teach and you are completely captivating. A true inspiration.
@muneebbug4 жыл бұрын
Such a love and fun while wwtching your videos. A TRUE TEACHER ❤ Love from Pakistan
@-Rigged3 жыл бұрын
My fav part so funny 8:30 btw Thank you so much i have wanted to learn code and i think i will be a programmer if i watch this whole series
@alcoholiccatscoding85404 жыл бұрын
I like when he speak care fulling so we can understand and when he joke around i like it i wish i was him
@TheSourLemonz2 жыл бұрын
needed to know about transparency for a project thanks dan
@knowledge_42034 жыл бұрын
THIS IS THE BEST TUTORIAL EVERRRRRRRRRRRRRRRRRRRRRRR I THANK U VERY MUCH MY BRO!!!!!111111!!!!!1111111!!!!!1111111
@girisharwade11205 жыл бұрын
the best coder ever seen in you tube
@sufjanchad6 жыл бұрын
So crazy. I was going back in these videos to try to figure out the atom command for launching a p5 sketch in Chrome and all the vids disappeared and now you are using the web edition.
@TheCodingTrain6 жыл бұрын
Hi, apologies! I am in the process of re-organizing the playlists. Note I am not deleting any videos from KZbin just moving some things around. You can find the workflow video here still: kzbin.info/www/bejne/fouXdWatebeUm8U I need to put it back in the playlist but probably later now that I am having beginners start with the web editor.
@carlosnani2 жыл бұрын
This video is the best and fun way to learn. Thanks !
@DragonDrew1818 Жыл бұрын
Bro you the best dan❤
@FunOfHeuristic6 жыл бұрын
Nicely expended, you can make a simple concept pretty interesting.
@shorako62526 жыл бұрын
i am really enjoying your lessons, i am from Egypt, keep going teacher ;)
@sweethomes674 Жыл бұрын
Wonderful lesson and enthusiasm 😊
@ronidey3806 жыл бұрын
I have already learned JavaScript now i have started learning p5.js with you... thank you so much for these videos... P5.js is easier than canvas HTML5.
@DeadCandIe5 жыл бұрын
The way your explaining is fantastic!
@KZ-ui5yo4 жыл бұрын
ive learned about RGB when i was playing a game where i can make my own game (Edit) ive also learned about the RBG when i was coloring the lights of the robot we were using in robotics class
@banditgreat66733 жыл бұрын
holy cow, im learning
@krish-ut9de2 жыл бұрын
ikr
@chickenchips60554 жыл бұрын
he is always excited i wish my school can hire him
@bubblebath28924 жыл бұрын
Man you are awesome !! and please tell what software you using for magnifying the screen / or focus
@secular-world73162 жыл бұрын
You have a great gift !
@menahamama3 жыл бұрын
thank you for teaching me to code
@saminchowdhury79955 жыл бұрын
12:59 if you just centered the ellipse on top of the green rectangle, you would have made Bangladesh flag. Thank you for the video sir.
@EduardoMazolini5 жыл бұрын
Hi, I'm Brazilian. I saw your course. I like to use as base to my course for public school children. You inspire me. I will start witch Scratch from MIT, maybe some game platform (construct3, stencyl), then your course. I do not really know the right way. I will be a volunteer but I hope it evolves into a small school in my town.
@TheCodingTrain5 жыл бұрын
I am excited to hear about this! please let me know if I can help in any way.
@billionaireno13 жыл бұрын
How is it going?
@EduardoMazolini3 жыл бұрын
@@billionaireno1 unfortunately, with COVID, people gave up on doing it. Who knows when the staff get together again.
@billionaireno13 жыл бұрын
@@EduardoMazolini i believe in you man, you can do it. Try doing an online courses for free (or paid, but you said you were going to be a volunteer so probably free.) that you can advertise to kids at their schools so you don’t have to worry about covid.
@vlahman_2 жыл бұрын
P5.js is really organised and simplifies the coding writing process; but isn’t it better to just learn the normal javascript code, as in the future we might have to work on projects built without p5 library and we might struggle in adapting to the main way of writing javascript ? I love the p5 way, if you would ask me, I'm just scared that in the future I might struggle with other projects. Thanks for your work, ur tutorials are extremely helpful!
@thebeastgaming37224 жыл бұрын
thanks you bro it helped me understand much more easily
@whatisgoingon89348 ай бұрын
U help so much thak you for making so great videos
@Blue_Opossum4 жыл бұрын
💖💖💖 amazing lesson!! Thank a lot. I gave thumb up and subscribed with theat pleasure!
@KewlWIS4 жыл бұрын
another way to set the transparency is by typing alpha ( *insert transparency digit here* ) before the shape
@nabil1702772 жыл бұрын
First of all thank you for an awesome and fun way to learn programming, kudos to you Daniel, you are a fabulous teacher. I got one question: I notes it that applying noStroke() before a line() makes the line disappear, do you know why ? Thanks again for the content
@doe66542 жыл бұрын
I think noStroke means no outline so line will be effected
@abhay_more5 жыл бұрын
how come at 12:43 when u removed fill() and the color changed frm blue to red....red colur was of ellipse...and another thing that u created rectangle first and then you wrote fill function for the ellipse how come the same color is in rectangle also what happened to order..... BTW LOVE YOUR WORK...ITS SO EASY TO UNDERSTAND U MADE IT EASY FOR US AND ALSO LOVE UR SENSE OF HUMOUR..
@abd-allahmuhammad92853 жыл бұрын
when i make a shape on top of the fill it still fills it. why? because i thought it was everything under the fill with this code it fills the circle when its on top of the fill function setup() { createCanvas(400, 400); } function draw() { background(220); circle(100,100,50) fill(0,255,0) }
@KG-gg1op5 жыл бұрын
Good job man keep the good work!!
@6754bettkitty5 жыл бұрын
The main reason that RGB is limited to 256 is because it is defined in an 8 bit scheme. You could expand the range by expanding the bit width, but nobody does that...
@Tnak3214 жыл бұрын
thank you for explaining this
@corrinabrouillard57284 жыл бұрын
Four somr resion the fill stroak and elipse will not wrick
@shauryaveerchaudhry21634 жыл бұрын
@Coding train... thank you... can you also have similar tutorials for MatterJS and Greensock and JQuery?
@Miiguel-mn3 жыл бұрын
So, i have a question, when using functions like stroke, strokeWeight or fill they work for all the shapes written after these commands, how can i make it so that these colour settings affect only one shape and not all of the ones that come after? Im loving the series!
@caterinatahan14003 жыл бұрын
You have to use the push () and pop () functions, which are always used together. For example_ function setup() { createCanvas(240, 120); } function draw() { background(204); fill(255,0,0); push (); fill(0,0,255); noStroke(); rect(30,30,50,85); pop(); rect(3,3,90,87); } This way, with push you "open" an area where the function fill with an argument that corresponds to red, and the function noStroke, will only be applied to what you draw inside there. When you want to "close" that area, you use pop. In order to prove you that those changes are only applied to the objects inside the push and pop, I used the function fill with red value on top. You will see that, as the second rectangle is not contained in the push and pop, it will actually be filled with red and not blue.
@percussion19996 ай бұрын
function setup() { createCanvas(100, 100, WEBGL); } function draw(){ background(200); line(-20, -30, 35, 25); rotateX(frameCount * 2) translate(20,40,10) sphere(15); describe( 'A black line on a gray canvas running from top-center to bottom-right.' ); }
@knowledge_42034 жыл бұрын
THANK U SOOOOOOOOOOOOOOOO MUCHHHHHHHHHHHHH AGAIN NNNNNNNNNNN!!!!!!!111111!!!!!!!111111!!!!!1111111!!!
@dct02810 күн бұрын
Is there a way where I can like the videos straight on the website.
@lindahartley73905 жыл бұрын
If you want to see my creation, put this into p5.js: function setup() { createCanvas(400, 300); } function draw() { background(100); rectMode(CENTER); fill(0, 255, 0); stroke(0, 0, 255); strokeWeight(4); rect(200, 150, 150, 150); fill(255, 0, 0, 175); noStroke(); ellipse(150, 250, 100, 75); }
@bhavanipakki35243 жыл бұрын
i may say its bad
@mandy13392 жыл бұрын
very nice
@FreeLancer-s1r4 ай бұрын
Amzeeing video
@chickenchips60554 жыл бұрын
I love this guy
@kulbhushanpatel25544 жыл бұрын
Hey!! I reallisrd That we can also use background("red or something") and the color named appears
@isabellebailey77714 жыл бұрын
so i have a triangle and then a bunch of lines underneath. i set a fill/stroke for the triangle and then the stroke was the same for the lines underneath. is there a way to end the logic after my triangle so my lines are not affected besides setting their own fill/stroke?
@IndubioProbene6 жыл бұрын
Is it necessary to type a semicolon after each "line"?
@TheCodingTrain6 жыл бұрын
Not necessary but I prefer to use them for clarity!
@estadodigital429 ай бұрын
would the exact half of the value 255 be 127 or 128? thanks!
@waltercisneros95354 жыл бұрын
Please I have a doubt, when you create a rectangle lets say 100 x 100 pixels, does this create a 99 x 99 rectangle with fill, and a 1 pixel surround with stroke? Or does stroke add a pixel to the shape to be now 101 x 101 pixels? Thanks, I hope to share something after the tutorials
@JordanCassady5 жыл бұрын
Are you also Gordon Clark of Halt and Catch Fire?
@강봉준-m4k4 ай бұрын
play with transparency :D function setup() { createCanvas(400, 400); } function draw() { background(1); stroke(255,0,0,100); strokeWeight(30); fill(0,0,255,100); circle (200,200,240); strokeWeight(); fill(0,0,255,245); triangle(200,200,150,250,250,250); fill(0,0,255,235); triangle(200,200,100,300,300,300); fill(0,0,255,225); triangle(200,200,50,350,350,350); fill(0,0,255,215); triangle(200,200,0,400,400,400); }
@sureshpawal13 жыл бұрын
When we have to leave a line?
@intellectualbrainstorm6654 жыл бұрын
My only Question, are there more arguments of for lets say background? I gave it like twelve arguments, and it started behaving like crazy, so what are significance of other arguments, other than rgb and alpha ? Please if anyone knows, please help me.
@luquis-173 жыл бұрын
THank you so much
@evanhood90594 жыл бұрын
Is there a way to colour in a section of your canvas without using 'rect'? maybe using x,y coordinates?
@banditgreat66733 жыл бұрын
yes, its the background code
@paolagonzalez15536 жыл бұрын
Hey, what if i have differents shapes like your example and i want to make the ellipse just transparent where the ellipse and the rect meets, like the intersection of the shapes.
@Xeronimo746 жыл бұрын
that's way more difficult ...
@I_like_science6 жыл бұрын
Bruh! that's way more difficult ...
@khushalrawat6904 жыл бұрын
Why does the size of the shape decrease if I increase the strokeWeight, shouldn't it stay the same and let the huge outline go out of the canvas. My guess is that p5 doesn't allow anything to exceed the specified canvas? Please help.
Hello can you tell me how to fill one pixel in canvas? is there any inbuilt function?
@mimifangs4 жыл бұрын
what if you wanted a shape to be half one colour, or just a section of it filled? Is that possible?
@akankshasingh7044 жыл бұрын
Can we change the colour of the text?
@Darkmateo6 жыл бұрын
Is there a way to fill under a line, i know i could also just draw a rectangle and fill it the color i want. But i would love to know if its possible to just draw a line in the middle of the canvas and change the color under that line.
@Zoozazzeh6 жыл бұрын
why the rectMode ( centre) only applied to the rect not both shapes? however the colors did!
@cashermans42144 жыл бұрын
Hi, I love coding and I love using p5 but if I want to code a game like minecraft. I need to use an other program. I have downloaded c++ but the commands doesn't work in there. And where do I see in c++ what I have coded. This is a question that I have searched many times on the internet but no one really explained it and I still don't get it.
@joshduriden5196 жыл бұрын
Now you can party in full RGB editor.p5js.org/full/BJknBqS5X
@65FM1Edits6 жыл бұрын
For me, Green 255 and blue 255 is the best.
@ipiudementi5 жыл бұрын
U r great. Greetings from Italy
@Pittre5 жыл бұрын
Isnt yellow the main color with red and blue And not green?
@slowedsoundnetwork82884 жыл бұрын
i'm having a bit of trouble. I'm trying to fill a rectangle in using the fill command, but It makes the ellipse the same color for some reason.
@gamerdio25034 жыл бұрын
What's your code?
@kyushii19214 жыл бұрын
Greetings from germany! what a great content! Very easy to understand ^^ but I have a question (I know this vid is 2 years old but hopefully someone can help me lol): I need the outline stroke to stay but the inside strokes to vanish. There are may shapes for building one big shape but the strokes of the inner shape should go away. Hopefully its understandable :D Thanks!
@TerrarianCrab4 жыл бұрын
What do you mean by inside stroke? if you mean fill, you can do this simple command. stroke(R, G ,B ); noFill(): rect, tri, quad etc(whatever settings you like);
@kyushii19214 жыл бұрын
@@TerrarianCrab I mean, I have many squares or triangles and they form one big shape. Bute I need those lines or stroke that are inside of the big shape I want to vanish. The outline of the shape should stay. Is this posible?
@TerrarianCrab4 жыл бұрын
The inside part is called fill(); if you want to delete it, you can do this simple command. stroke(R, G ,B ); noFill(): rect, tri, quad etc(whatever settings you like); noFill is the command that deletes the inside part (fill)
@kyushii19214 жыл бұрын
@@TerrarianCrab I´ll try that. Thank you very much :)
@TejasIsAmazing3 жыл бұрын
@Kyushii Oof i am late, but instead of remove the lines inside the big shape, you can instead draw the big shape after the other shapes. The order of the shapes that you draw matter. So if you have a shape that you want on top of the other shape, and you dont want the lines of the other shapes to come inside the original shape, then you can just put the drawing code of the original shape, after the shape you want to draw on top off. You might have already figured it out, but it might help others, so ya.
@uninsane76165 жыл бұрын
From where did you learn coding
@sub2pewdiepie1805 жыл бұрын
Ik I'm really late on this and you probably won't read this but my CENTER comand isn't working and I don't know why Any tips would be great Much appreciate thanks
@6754bettkitty5 жыл бұрын
uh, it should work. consult the p5*js faq
@kathyhunter12112 жыл бұрын
int c = 255; fill(c); c-=60; How does this work the -=
@apaulphilip14 жыл бұрын
Here is the project thingy .editor.p5js.org/Chrisbis/full/NK5i8Is8K
@Sapgreenbooks-l1gАй бұрын
TE AMO
@Holobrine6 жыл бұрын
You should have stroke(null) mean no outline. It would spare you a few functions.
@mukeshkumar-nr2wx5 жыл бұрын
If i am learn p5.js what is the benifit? i am looking for strong in javascript.but p5.js is help for this?
@TheCodingTrain5 жыл бұрын
p5.js is a library for JavaScript so you will learn the basics of JS in this series! If you are interested in web development or server side programming with JavaScript you might want to check out other tutorials on native JS, React, node.js, etc.
@MRESAT424 жыл бұрын
how can we create extra canvas?
@rishabhtomar33522 жыл бұрын
guys can anyone send me that oscillation by nature of code link. its not working in dan's description.
@TheCodingTrain2 жыл бұрын
I'd like to fix this! I dont remember what this sketch was, do I refer to it in the video?
@shannu_boi6 жыл бұрын
I'm having a problem. Whenever I type noStroke(); It removes all the strokes in all the shapes after this line. Is there a way I can undo or remove this function after a few lines or something
@lioncat7316 жыл бұрын
yeah, me too. Anyone knows what the problem would be? Even I put noStroke(); at the end of the function.
Hi guys! Use push(); and pop(); (you can check it out on this site p5js.org/reference/), or you can use stroke(number); if you want stroke
@abhiroopcvk136 жыл бұрын
@@lioncat731 hey! Once you declare noStroke(); all code below it will lose its stroke. To get stroke back, you would have to declare stroke again. Example: stroke(0); to declare a stroke of black
@huhgo81796 жыл бұрын
@@kristofkovacs5836 thnaks!!
@ThsHunt2 жыл бұрын
8:36 we can not use ur finger cus they r ur own fingers
@Jonathan-xq6dv5 жыл бұрын
Can anyone tell me where suppose 1.7 where we learn how to animate them is?
@TheCodingTrain5 жыл бұрын
Here's the full playlist: kzbin.info/aero/PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
@leolocoism6 жыл бұрын
Thank you again, again and again :)
@ctbram06273 жыл бұрын
Okay this is making me insane. For whatever damn reason the cursor keeps setting itself to overwrite and I have to keep pressing the damn insert key to get it back in insert mode. And since I have to look at my damn fingers when I type I find out when I look up and see I have overwriten an entire line of code!!!!! Please what key or action keeps resetting the web editoer to overwrite mode?????
@goldthumb2 жыл бұрын
I can't figure out the message on Daniel's T-shirt. 🤣
@TheCodingTrain2 жыл бұрын
It's from here! distributedweb.care/posts/products/
@slymagpie6 жыл бұрын
Hey Dan, is this new or a repost?
@TheCodingTrain6 жыл бұрын
It's a new video (edited out of a recent live stream) but the content is a re-post as I made a similar video ~3 years ago. I am remaking some of them to use the new p5.js Web Editor.