DEV Community

huberto_madalena
huberto_madalena

Posted on

Canvas API on Javascript

var c = document.getElementById('rect');

var context = c.getContext('2d');

context.fillStyle= '#C0C0C0';
context.fillRect(10,20,180,100);

Top comments (0)