I wanted to make a close button using rectangle in HTML5 canvas, here is the code for the box:
function close_button(ctx)
{
ctx.fillStyle = "red";
ctx.fillRect(500, 30, 30, 30);
}
my problem is I don't know how to make cross in middle of the red box,can someone help me?