UNIT 4-HTMLS CANVAS
HTMLS5— CANVAS
4.1, HTMLS — CANVAS:
The HTMLS
invas> element is a powerful feature used for rendering dynamic,
scriptable graphics on the web. It provides a drawable region in your HTML page where you
can use JavaScript to draw shapes, text, images, charts, and even animations, Unlike
traditional image elements, the canvas is blank by default and requires scripts to render
content,
It supports both 2D and 3D (via WebGL) contexts, making, Supported by all major
modern browsers, HTMLS Canvas is widely used in web design, game development, and
data visualization
4.2. The Rendering Context
‘The rendering context is an object that provides methods and properties to draw on
the