0.0.1 • Published 2 years ago

kijs-queue v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

fCanvas

Library for canvas 2 HTML 5 View docs

Build NPM

Example:

import { createCanvas, Block } from "fcanvas"

const canvas = createCanvas()

canvas.setup(() => {
  canvas.append()
})

class App extends Block {
  draw() {
    this.circle(
      this.instance.mouseX ?? 0,
      this.instance.mouseY ?? 0,
      50
    )
    if (this.instance.mouseIsPressed) {
      this.fill("red")
    } else {
      this.stroke("green")
    }
  }
}

const app = new App()

canvas.draw(() => {
  app.render()
})