How do you create graphics in JavaScript? Can you? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you create graphics in JavaScript? Can you?

Is it possible to make graphics in JavaScript? And once that happens, how to you make it into a playable character with buttons? How do you even make things move with buttons? I'm so confused, please help. They don't cover JavaScript buttons in the course as far as I know.

12th Nov 2018, 4:38 AM
Joshua
3 Answers
+ 3
JavaScript manipulates HTML, and HTML has buttons. In HTML, there are many ways to create button-like elements (<button>, <a>, etc.). Since you have so many questions and it would take quite a large number of characters to fully explain, I would recommend you go through the HTML course and CSS course. You should be able to use the search bar to find answers to most (if not all) of these questions once you are armed with some of the vocabulary.
12th Nov 2018, 7:09 AM
Janningā­
Janningā­ - avatar
+ 1
ok
12th Nov 2018, 7:10 AM
Joshua
0
Canvas is commonly used for that. If you want more options, I recommend you check out p5.js which is a JavaScript library with lots of functionality. https://p5js.org/
12th Nov 2018, 4:29 PM
Brendon Bosman
Brendon Bosman - avatar