The HTML5 Canvas has no method for explicitly setting a single pixel.
It might be possible to set a pixel using a very short line, but then antialising and line caps might interfere.
Another way might be to create a small ImageData
object and using:
context.putImageData(data, x, y)
to put it in place.
Can anyone describe an efficient and reliable way of doing this?