HTML5
Этот тег определяет область для графики.
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
</
body
canvas
id
"can1"
width
"400"
height
></
script
var canvas = document.getElementById('can1');
canvas.style.position = 'absolute';
canvas.style.left = '50%';
canvas.style.top = '50%';
canvas.style.marginLeft = '-200px';
canvas.style.marginTop = '-200px';
var rect = canvas.getContext('2d');
rect.fillStyle = '#EEFCCD';
rect.fillRect(0, 0, 400, 400);
var cicl = canvas.getContext('2d');
cicl.fillStyle = '#fc0';
cicl.beginPath();
cicl.arc(200, 200, 200, 0, Math.PI * 2, true);
cicl.closePath();
cicl.fill();