Canvas size amd execute/query

This commit is contained in:
David Botton 2021-01-14 16:11:34 -05:00
parent e75def587d
commit 0c5a1c081e
2 changed files with 12 additions and 14 deletions

View file

@ -5,9 +5,13 @@
(in-package :clog-user)
(defun on-new-window (body)
(let* ((canvas (create-canvas body))
(let* ((canvas (create-canvas body :width 600 :height 400))
(cx (create-context2d canvas)))
)
(set-border canvas :thin :solid :black)
(clog::execute cx "fillStyle='green'")
(clog::execute cx "fillRect(10, 10, 150, 100)"))
(run body))