-1

Hello i draw circle color palette using canvas, but problem is have seem bad pixels. Rought circle

enter image description here enter image description here

How i can fix it?

code jsfiddle: http://jsfiddle.net/La5d6z07/

codelife
  • 97
  • 7

1 Answers1

0

You can make the canvas element twice the size and force it with css to be half of it's width & height (=original size) in pixels.

This will make the image look great on retina screens and will apply browser's own smoothing when scaled to normal screens.

jehna1
  • 3,110
  • 1
  • 19
  • 29