0.0.2-s4 • Published 2 years ago
@nomorejalapenos/sketch v0.0.2-s4
const s = sketch(document.querySelector('.container'), (state) => {
state.clear()
const width = state.size.x * 0.4
const height = state.size.y * 0.4
const x = state.size.x / 2 - width / 2
const y = state.size.y / 2 - height / 2
state.context.rect(x, y, width, height)
state.context.fill()
})
// s.destroy()