Last active
September 19, 2019 22:59
-
-
Save muizidn/831124de9a6bc57a1a59077d1750c27a to your computer and use it in GitHub Desktop.
HTML5 Canvas using Core Graphics API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class CGContext { | |
constructor(document, id) { | |
const c = document.getElementById(id) | |
this.ctx = c.getContext("2d") | |
} | |
move(cgPoint) { | |
console.log("I am ${cgPoint}") | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sayHello() { alert("Hello Test.js") } | |
sayHello() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment