You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
amazon_kindle_download/img/icons/draw_omega.js

19 lines
500 B

var drawOmega = function (ctx, outerCircleColor, innerCircleColor) {
ctx.globalCompositeOperation = "source-over";
ctx.fillStyle = outerCircleColor;
ctx.beginPath();
ctx.arc(0.5, 0.5, 0.5, 0, Math.PI * 2, true);
ctx.closePath();
ctx.fill();
if (innerCircleColor != null) {
ctx.fillStyle = innerCircleColor;
} else {
ctx.globalCompositeOperation = "destination-out";
}
ctx.beginPath();
ctx.arc(0.5, 0.5, 0.25, 0, Math.PI * 2, true);
ctx.closePath();
ctx.fill();
};