Mrunay Uttarwar
Mrunay Uttarwar

@MrunayU

9 تغريدة 2 قراءة Oct 03, 2022
🔷 About HTML Canvas - 1
A Thread🧵 👇
📌 What is HTML Canvas?
→ The HTML <canvas> element is used to draw graphics on a web page via JavaScript.
→ The <canvas> element is only a container for graphics.
→ Canvas has several methods for drawing paths, boxes, circles, text, and adding images.
→ It uses the bitmap image format.
→ These are well suited for gaming applications.
→ Canvas images are not that flexible.
→ It refers to paint the program.
📌 Syntax Of HTML Canvas
→ Always specify an id attribute (to be referred to in a script), and a width and height attribute to define the size of the canvas.
→ To add a border, use the style attribute.
Let's see some examples....
1️⃣ Draw Linear Gradient
2️⃣ Draw Circular Gradient
Thanks for reading this thread ❤️
If you like it , make sure you:
🔷 Like the tweet
🔷 Retweet the first tweet ⚡
For more content , follow:
@MrunayU
You can read the unrolled version of this thread here: typefully.com

جاري تحميل الاقتراحات...