atom-community / atom-community/atom-script
Add support for HTML
Open
- Dominant language
- JavaScript
- Stars
- 730
- Forks
- 264
- PR merge metrics
- No merged PRs in 30d
Description
window.onload = function() {
// Some code
var c = document.getElementById("canvas");
var ctx= c.getContent('2D');
ctx.beginPath();
ctx.rect(0, 0, 60, 20);
ctx.fillStyle = 'limegreen';
ctx.fill();
ctx.beginPath();
ctx.moveTo(0,0);
ctx.lineTo(50,50);
ctx.stroke(255);
why is this code not performing any thing?
it is not throwing error either.
Contributor guide
Assessment
This issue has not been assessed yet.