+ 2

p5js vs cavas in JavaScript

What, according to you, is better in terms of animation and all the other things we do in JavaScript. What are the pros and cons of both of these. I see nowadays more web coders (on sololearn) use p5js

18th Jul 2019, 3:24 PM
Saurabh Tiwari
Saurabh Tiwari - avatar
15 Answers
19th Jul 2019, 9:02 AM
Calviղ
Calviղ - avatar
+ 7
Complicated config buulds complicated games 😬
19th Jul 2019, 9:06 AM
Calviղ
Calviղ - avatar
+ 7
Calviղ thanks! I also found this github page dedicated to pixi, for whoever is interested 😃 https://github.com/kittykatattack/learningPixi
19th Jul 2019, 9:15 AM
marjel101
marjel101 - avatar
+ 6
marjel101 I tried out the codes from the same github page. Let's make some games from there. 😬
19th Jul 2019, 9:48 AM
Calviղ
Calviղ - avatar
+ 6
Calviղ haha, that’d be cool! I’m sure you could make something really special with it. I think I’ll be browsing the github page a bit this week, and learn more about it 😃🌹🌹
19th Jul 2019, 12:07 PM
marjel101
marjel101 - avatar
+ 5
Vanilla js > all else js in my humble opinion. Plus if you know how, you can do everything p5 js does for animations with vanilla js. (just a bit more verbosely)
19th Jul 2019, 6:30 AM
Haris
Haris - avatar
+ 5
ᐺ ! ᖇ † ᒪ where can i find examples of pixi.js? Are there any pixi.js codes here on sololearn?
19th Jul 2019, 8:30 AM
marjel101
marjel101 - avatar
+ 4
p5 is excelent for beginners, you can find outstanding learning material on youtube. But i think when you want more, then you should learn canvas. Or start with p5 and switch to canvas later, which I plan to do eventually, if I find the courage to do so ... 😌
19th Jul 2019, 7:09 AM
marjel101
marjel101 - avatar
+ 4
Saurabh Tiwari Like I said, p5 is really easy to get started, but in the end canvas is more complete. Did you already find the tutorials of The Coding Train on youtube? You can learn so much there, also general javascript subjects like arrays, objects, loops and so on. All related to drawing with p5js.
19th Jul 2019, 8:01 AM
marjel101
marjel101 - avatar
+ 4
I know both, but in my opinion p5.js is way easier. I made the mistake of learning canvas first. Start with p5.js to get grips then move to canvas. I am actually going to go cold turkey soon and give up p5. I take p5 as a boost for beginners. Learn valuable knowledge with p5, and then go forward with the real thing.
19th Jul 2019, 8:09 AM
Clueless Coder
Clueless Coder - avatar
+ 3
marjel101 I was going to do canvas and then p5 But I realised that my progress in canvas is very slow So I switched to p5js
19th Jul 2019, 7:25 AM
Saurabh Tiwari
Saurabh Tiwari - avatar
+ 3
marjel101 Thanks Yep I am learning from that channel
19th Jul 2019, 8:08 AM
Saurabh Tiwari
Saurabh Tiwari - avatar
+ 3
Calviղ Seems complicated! 😅
19th Jul 2019, 9:05 AM
Clueless Coder
Clueless Coder - avatar
19th Jul 2019, 6:12 AM
Saurabh Tiwari
Saurabh Tiwari - avatar
0
0041085782 bank bni
17th Mar 2023, 12:01 AM
BANG GOBENG
BANG GOBENG - avatar