4:40 in the morning. Hella insomnia. Tired of watching tv shows. Decided to enrich my life and bone up on canvas. Thx for taking the time to make these vids. You the real MVP.
@abhayrohit3 жыл бұрын
*Really Important Note for future visitors* Setting size with css doesn't only result in the aforementioned issue but also if we set dimensions with css, the canvas just scales up from its default resolution which is 300px something, try putting an image in the canvas when you set css dimensions, it will be pixelated like shit, and thats the main reason we have to set the width height with javascript
@sfarzortee5 жыл бұрын
I think this is the best tutorial channel I have ever come across.
@avi127 жыл бұрын
7:09 You can set the width & height through CSS as well. As you said, the isn't taking the entire height, and as you know - you can interact with any tag using CSS I.e. : html { height: 100%; } To ensure that the canvas truly expands to the page's height, you need to remember the as well, so: html, body { height: 100%; } If you want the width as well (and I'm sure you can tell that the width isn't realy 100%, but more like 90%), you can do: html, body { width: 100%; height: 100%; }
@speedylog4619 күн бұрын
why write too many lines just: *{ margin:0; padding:0; } // and then canvas{ width: 100vw; height:100vh;} simplle
@threeone60127 жыл бұрын
This is the best tutorial I have ever taken. 4 videos of pure awesome! Thank you Chris!
@ChrisCourses7 жыл бұрын
This is up there with some of the best compliments I've ever received, thank you!
@sherylbee86345 жыл бұрын
Wow, you are a FANTASTIC teacher. You literally left nothing to assumption. Thank you so much for sharing your knowledge, skill and talent! 👍🏾👍🏾👍🏾
@Vistouf4 жыл бұрын
I really like how this tutorial holds your hand even for the basic file creation. It shows you're going to keep holding my hand for the parts of the tutorial I really need!
@imoto1238 ай бұрын
exactly my thought! Have you gone through entire playlist?
@theman70502 жыл бұрын
King of Canvas!
@ChrisCourses2 жыл бұрын
Like the sound of that 😤👑
@learner801 Жыл бұрын
Best tutorial that I came across for CANVAS! Even after 6 years WOW! Thank you so much, you explained it so well!
@mrmbeautiquethebrand2 жыл бұрын
One Thing Is Your Video Is. You Are Very Genuine person.
@abhinavs036 жыл бұрын
You my friend are the real MVP here. Yes you are.
@OlaG-el9zr5 жыл бұрын
Even before watching, I already know this tutorial will be quality so lemme pay my dues by dropping a comment, affording a like, and finally subscribing.
@jalq19784 жыл бұрын
Awesome Chris. Thanks for taking your time.
@TransparentGel7 жыл бұрын
Subscribed, every video is amazingly in-depth and super clear. Hope your channel keeps growing and you keep producing quality content like this. Love from Portugal.
@ChrisCourses7 жыл бұрын
Awesome, glad to hear it, definitely going to keep producing what I believe to be quality content and hope that it continues to grow 😎
@sidhantmanchanda7 жыл бұрын
Not going anywhere ! Great work
@SongOfTheCrane5 жыл бұрын
When following along with this tutorial, I encountered an issue where my body was always larger than the actual window.innerHeight, causing scroll bars to be enabled. I finally found that changing the body CSS to also include 'display: flex' resolved my issue. (This was occurring in both Firefox and Chrome, the display mode by default was 'block'.) Hoping to save someone some time, haha.
@sidheshwartiwari98344 жыл бұрын
Thats not a good idea... As it will display everything in a row or column.. you should rather put height 100vh to the body
@ytubeleo4 жыл бұрын
Me too. It's so weird, a bug I guess. Very interesting that display:flex fixes it. I've found this also works: And: canvas.width = window.innerWidth-2; // to compensate for 1px border canvas.height = window.innerHeight-2;
@eduardoo313 жыл бұрын
i was having the same problem. thanks!
@bardiaeskandarian82242 жыл бұрын
goood job bro i had same problem but with your comment i've solved my problem 😍😍
@HigkeyRegarded0072 жыл бұрын
@@ytubeleo Thanks so much for this! 2 years later and its still helpful! Awesome work!
@ifecojahs81517 жыл бұрын
You are the greatest teacher I have ever met or seen anywhere! Thanks Bro!
@ranjandeb67393 жыл бұрын
Awesome, I was looking for HTML graphics related courses, and yours is the best I've found so far. Thank you for your awesome work.
@erielh Жыл бұрын
this was genuinely such a great tutorial. i was so anxous over a team work related to js & canvas i have to do for uni and this is genuinely a lifesaver. you explain things very clearly and i feel like i learnt a lot haha. thank you! have an awesome day
@MrRayinsf2 жыл бұрын
The best tutorial on Canvas (paid or free) that I have experienced. Clear, concise, and fun.
@theSunflowerPlug7 жыл бұрын
Studying for Microsoft 70-480 exam and video has definitely been the best I've seen. Thanks for the great walkthrough.
@antoniodesousa17317 жыл бұрын
Absolutely brilliant tutorial series! Just sad there wasn't more, but look forward to whatever videos you add to this series! Excellent work, and many thanks!
@stevelyon7473 ай бұрын
Great job on these tutorials! They're engaging and I'm learning a lot. Thanks, bud.
@aionair773 жыл бұрын
Awesome! these episodes are just what I needed! Thank you!
@kishannr9116 жыл бұрын
This video is casting me into becoming an HTML Javascript developer. I am a loving it, will continue learning from all your videos. 👍
@DementedBeast4 жыл бұрын
you should try a full stack. if you want mostly this, try the MEAN stack. (MongoDB, ExpressJS, AngularJS, NodeJS) m.e.a.n. anyway it will provide a full stack while working soley with front end stuff except the db. anyway. then learn how to build it into an app with electron, bam fully cross platform or standalone or web hosted.
@jimmyciaston77337 жыл бұрын
Hands down one of , if not the best javascript series out there . You take your time and explain everything in an easy and precise way . Thank you sir
@SAlmanKhanDev6 жыл бұрын
Very straightforward Chris, great video, subbed!!
@smn25423 жыл бұрын
Such a good tutorials!! Thank you. I am so so so happy I found your channel.
@rommellobiano22216 жыл бұрын
"A canvas element, what a surprise, a canvas element for a canvas course." LMAO made me subscribe
@misterperfecttube53776 жыл бұрын
This is unlike every other development tutorial... I find this engaging as well as "not boring" as the other turorials on youtube... just wanted to say, for me your content stands out dude. Thanks a lot
@Aziz007477 жыл бұрын
Wow! this is so cool. Can't wait to finish the rest of the courses.
@brianwilliam16425 жыл бұрын
Whoa, this is awesome! Go Chris!
@sharifulislam-pd3sj6 жыл бұрын
Wow! What a tutorial it is. It's too much beautiful. Thank you so much.
@viniipelomundo6 жыл бұрын
Thank's a lot !! I'm from Brazil and here we don't have good content like yours.
@ezechinedu48674 жыл бұрын
You are the best tutor i have seen so far on this. Thanks a lot😘
@TechSquidTV7 жыл бұрын
Great video. Love the new Intro of course.
@ChrisCourses7 жыл бұрын
Thanks man, your latest one on CSS is great too, enjoyed it.
@prashansapriya59633 жыл бұрын
Wow it was simply awesome ❤️ so precise and informative video
@ChrisCourses3 жыл бұрын
Thanks for watching, appreciate the support!!
@skill.mp45276 ай бұрын
for those who is having scrollbar problems, i've set the canvas' display to block, because its standard is display: inline, it worked for me and i hope to save someone with this same problem
@pawenobis53866 жыл бұрын
So clearly explained, great job Chris!
@ChrisCourses6 жыл бұрын
Glad you think so Pawel, thanks!
@ReviewGame103 жыл бұрын
Best HTML Canvas tutorial thanks
@junolea73715 жыл бұрын
Those people who thumbs down, are you all that jealous? Thanks Chris! You explain so well!
@dagamememer24453 жыл бұрын
I love these tutorials
@joaofnds7 жыл бұрын
looking forward for the next tutorials, thanks Chris!
@ChrisCourses7 жыл бұрын
Thanks Joao, been with me since the start, truly appreciate it man.
@RealRameshBabu3 жыл бұрын
Clear explanation and easy to understand Subbed this channel
@rohitj12522 жыл бұрын
one will have to set h and w through js , can't do it with css(not even 100vh) else animation won't showup. also for scroll just remove the border, or have to minus its dimention in h,w. good tutorial. watching other now
@endeesecreative5216 жыл бұрын
I would recommend using width: 100%; height: 100vh; That way you're using the full width of the screen and also the entire viewport height. Separating styles from JS is best practice.
@GogurtTheFirst7 жыл бұрын
I'm glad I found this playlist and your channel. You have some well put together videos. Keep the content coming!
@mysteriouswarrior29953 жыл бұрын
Awesome, I'm really glad I found the perfect playlist to learn canvas. Now I am more motivated to learn canvas. Canvas was overflowing so I make it fixed for now.
@jcbongaitan6126 жыл бұрын
love your videos bro ,, keep up the good work
@gektorix2 жыл бұрын
Just a comment to support the channel. Keep up the good work. Very interesting content.
@leozeng66967 жыл бұрын
That's amazing! I'm so glad and excited to watch it and learn canvas. Thanks for sharing. You're awesome!
@supporterofeastturkestanin28714 жыл бұрын
Thank you for these super amazing 12 canvas video series!
@neozhan76507 жыл бұрын
Great video for beginners, thank you Chris !
@arunbm1235 жыл бұрын
Thanks for your videos, I wanted this course very badly.
@bloomingirl11 ай бұрын
this guy should be a teacher at school 🗣good job, you earned a sub
@zlackbiro6 жыл бұрын
Simple solution is to always add the working
@milindkhadse5564 жыл бұрын
Nice video tutorial. Thank you very much to upload. All playlist videos are awesome.
@421prateek4 жыл бұрын
awesome explanation man!
@ChrisCourses4 жыл бұрын
Thanks Rakesh!
@sylvesterjengwa79415 жыл бұрын
you deserve thumbs up million times great tutorial
@ovweb58625 жыл бұрын
Thank you! You are awesome.
@80sGameGuy5 жыл бұрын
Thanks, that canvas element is pretty cool!
@Tsmolad5 жыл бұрын
Never hit the subscribe button so fast the way i just did
@Mimitheartist6 жыл бұрын
Thank you for an excellent beginners tutorial!
@neharika62586 жыл бұрын
thank God that I came across this playlist....as I hv to make a project... thanks a lot!!!!!😊😊
@henkhodryza18744 жыл бұрын
Thank you... I love this series
@robertcaluza95347 жыл бұрын
for canvas width & height, in the css couldn't you just set the width and height to 100vw and 100vh, respectively?
@ChrisCourses7 жыл бұрын
Hey Robert, someone asked me the same question earlier this week. For the initial canvas resize, resizing with CSS vh and vw properties will function the exact as resizing with the JS code in the video-it really just comes down to preference. Now, in order to ensure the canvas is always 100% of the browser window when the browser is resized, you'd have to give the canvas a parent element with a width and height of 100vw / 100vh. With JS, you throw the resize code in an event listener for browser resize, and it'll handle everything automatically, no parent element required. Both ways work, I just like being able to resize the canvas without requiring a parent element.
@robertcaluza95347 жыл бұрын
cool thanks for the quick response - i was wondering if there was a downside to setting the dimensions in css rather than js(functionality wise) again thanks for responding, can't wait for part II!
@ChrisCourses7 жыл бұрын
Nope, there should be no downside that I'm aware of. Further down the course, you'll see how we handle dynamic browser resizing with JavaScript, but if you have things set up with CSS, there shouldn't be any noticeable difference functionality wise. Not a problem at all responding, glad I could help :)
@barbarawiacek65577 жыл бұрын
I came across scaling problems when I set the width and height with 100vh and 100vw in css. When I did that, the squares that I created with .fillRect() were stretched, not sharp and were not even squares anymore. Setting the width and height in javascript solved this.
@yosoX7 жыл бұрын
The width and height attributes of a canvas element are different from its width and height style properties. The attributes set the logical dimensions that are being used for drawing. The style properties only manipulate the sizing of the element itself and will scale the content just like an image. This can cause blurry drawings or even mess up aspect ratios.
@missoula22135 жыл бұрын
Thank you! So far this is way better than the college course I am paying thousands of fucking dollars to take.
@sureshcarpenter77976 жыл бұрын
you are so good man thanks for making this tutorial keep it up useful
@sweethomes674 Жыл бұрын
Excellent explanations 😊
@ahlambeyoud17097 жыл бұрын
your explanation skills are level 9000 :) great tutorial thank you very much !
@neoliu31256 жыл бұрын
I love your courses! Hope you will bring more tutorials in web animation!
@gustavoleite75695 жыл бұрын
instead of creating a variable for height and width in JS, you can use the CSS unit "height: 100vh and width: 100vw", it uses the total area of the user view
@DavidsKanal5 жыл бұрын
I think it is worth mentioning that the Canvas2DRenderingContext isn't the only one obtainable through .getContext; WebGLRenderingContext and BitmapRenderingContext also exist. A is related to any of these contexts as much as it is to all others, and therefore I think it's wrong to present the Canvas2DRenderingContext as the "one and only" option here. Sure, it's easier than WebGL, but it's not any more "canvas" than other the contexts.
@olegs777 жыл бұрын
thank you! I watch it every time whenever I'm going to start some new project.
@thomascarlton823 жыл бұрын
Good stuff, thx for making these concepts easy to understand
@christianteller6616 жыл бұрын
you're the best man keep making videos please.
@ChrisCourses6 жыл бұрын
WISH GRANTED, THIS THURSDAY. THANKS MY DUDE!
@dying33535 жыл бұрын
You're taste in music is good as well
@logomoniclearning66806 жыл бұрын
hey Chris! I'm lovin your courses
@andycheng94527 жыл бұрын
super awesome, bro!
@vladyslavkyiashko97534 жыл бұрын
I had overflow with those styling in chrome, adding: position: absolute; left: 0; top: 0; solved this issue, also it's better to use vm and vh in css instead of innerWidth and innerHight, btw nice course :)
@ytubeleo4 жыл бұрын
Me too. If I don't want to set position:absolute, I've found I have to do: And: canvas.width = window.innerWidth-2; // to compensate for 1px border canvas.height = window.innerHeight-2;
@stormos25one7 жыл бұрын
Great Video as always!
@ChrisCourses7 жыл бұрын
Big thanks to you as always too!
@mytechjungle7 жыл бұрын
You are a great teacher. Awesome tutorials :)
@whoami-so2hy6 жыл бұрын
veryy nice course my bro, please make more video. keep it up ^.^
@BarneeeYx6 жыл бұрын
Thank you for this clear and understandable tutorial! Good job ;)
@illDesign867 жыл бұрын
Does work well on iOS and Android devices for these full-screen video like animations?
@ChrisCourses7 жыл бұрын
Indeed it does, but you have to take certain precautions to ensure this. When we get to Part IV, Interacting with the Canvas, I'll be sure to describe every little detail you'll need to know to get these functioning beautifully on mobile. If you'd like to see some examples, check out my portfolio site on your phone-every piece on there should be mobile optimized. christopherlis.com/#/
@mystreie7 жыл бұрын
wow, this is really cool! reaaally hope i can be as good as you ! i just followed your chanllenge your provided in the 2nd video and play with it, i did learn something there, thanks again Chris! just plz make some more videos, i cant wait ! xD
@kbyebea7 жыл бұрын
never mind my question earlier, you answered this :)
@Talel_kraiem Жыл бұрын
this is hell awsome !!!
@MayankArora6 жыл бұрын
You just earned a subscriber boy :D
@davidpereira79386 жыл бұрын
That MrSuicideSheep subscription. :)
@ILAEnglishYT7 жыл бұрын
Great work! Thanks for these vids.
@callmejobson2 жыл бұрын
Cool Im just getting started with canvas! I hoping I can use it for prototyping and making fun games!
@pavel55153 жыл бұрын
Cannot get over hearing Chris Griffin o' Family Guy talking about JS / Canvas. Then I see - the channel name is Chris Courses. Sounds like no coincidence :)
@mdazam64776 жыл бұрын
Excellent job
@juhandvan7 жыл бұрын
Thank You for sharing your knowledge.
@zell44126 жыл бұрын
Learned so much thank you!!
@MauFerrusca5 жыл бұрын
AH! A Focusrite USB interface, a man of quality.
@nourbounasr5536 жыл бұрын
awesome tutorial thanks man
@lucasl84956 жыл бұрын
I was making good traction on this course until I started browsing r/place for 45 minutes