atom-community / atom-community/atom-script

Add support for HTML

Open
#2,705 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.