For performance reasons, don’t draw a circle if you can avoid it. Just draw a rectangle with a width and height of one:
ctx.fillRect(10,10,1,1); // fill in the pixel at (10,10)
More Related Contents:
- HTML5 Canvas Rotate Image
- Draw on HTML5 Canvas using a mouse
- Html5 canvas drawImage: how to apply antialiasing
- html5 – canvas element – Multiple layers
- How to Copy Contents of One Canvas to Another Canvas Locally
- Canvas drawings, like lines, are blurry
- Drawing text to with @font-face does not work at the first time
- What’s the best way to set a single pixel in an HTML5 canvas?
- How to change the opacity (alpha, transparency) of an element in a canvas element?
- using HTML5 Canvas – rotate image about arbitrary point
- How to make rooftext effect and valley text effect in HTML5 (or Fabric.js)
- get click event of each rectangle inside canvas?
- HTML5 Canvas getImageData and Same Origin Policy
- canvas default size
- How can I write text on a HTML5 canvas element?
- Animated GIF in HTML5 canvas
- Gradient Stroke Along Curve in Canvas
- Chart.js canvas resize
- HTML5 Canvas background image
- Placing a within a
- Combining two or more Canvas elements with some sort of blending
- All html canvas shapes are given the color of the last object added
- What is the difference between SVG and HTML5 Canvas?
- Subpixel anti-aliased text on HTML5’s canvas element
- Create links in HTML canvas
- Browser Canvas CORS Support for Cross Domain Loaded Image Manipulation
- Draw SVG on HTML5 Canvas with support for font element
- Content Security Policy: “img-src ‘self’ data:”
- “Erasing” in html5 canvas
- HTML5 Canvas and Line Width