Skip to content

Instantly share code, notes, and snippets.

@muizidn
Last active September 19, 2019 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muizidn/831124de9a6bc57a1a59077d1750c27a to your computer and use it in GitHub Desktop.
Save muizidn/831124de9a6bc57a1a59077d1750c27a to your computer and use it in GitHub Desktop.
HTML5 Canvas using Core Graphics API
export class CGContext {
constructor(document, id) {
const c = document.getElementById(id)
this.ctx = c.getContext("2d")
}
move(cgPoint) {
console.log("I am ${cgPoint}")
}
}
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