Languages
[Edit]
EN

JavaScript - draw point on canvas element

10 points
Created by:
Evania
584

In this article, we would like to show how to draw points on canvas element using JavaScript.

Points drawn on canvas element using JavaScript.
Points drawn on canvas element using JavaScript.

1. Squared points

Edit

To draw squared points we can use fillRect() method.

2. Rounded points

Edit

To draw rounded points we can use arc() method.

 

See also

Edit
  1. JavaScript - how to draw pixel on canvas element?

Alternative titles

  1. JavaScript - how to draw point on canvas element?
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

JavaScript - HTML5 canvas tutorial

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join