How create a shape without canvas only with Javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How create a shape without canvas only with Javascript?

I need to know how to create 2d object without html or canvas only with js. Its mean i wanna to create the object with 100% js code.

14th Dec 2022, 3:54 PM
Samuel Hayden
Samuel Hayden - avatar
4 Answers
+ 4
You can. Try using the search feature. For questions before creating new post. https://www.sololearn.com/discuss/1874428/can-we-make-a-block-circle-square-with-js-only-no-canvas
14th Dec 2022, 5:42 PM
Chris Coder
Chris Coder - avatar
+ 2
Apart from canvas, you can also use SVG for graphics, or any regular HTML element with tricky CSS styles. And you can control the creation and attributes of all those elements from JavaScript too. https://www.petercollingridge.co.uk/tutorials/svg/interactive/javascript/
15th Dec 2022, 4:57 AM
Tibor Santa
Tibor Santa - avatar
+ 2
Tibor Santa Chris Coder Thank you guys. Its was that what i need. And its good that sololearn have Mentor like you.
15th Dec 2022, 5:00 AM
Samuel Hayden
Samuel Hayden - avatar
15th Dec 2022, 2:29 PM
Calviղ
Calviղ - avatar