Start of clog-canvas

This commit is contained in:
David Botton 2021-01-14 15:44:04 -05:00
parent 31054ad9d2
commit e75def587d
4 changed files with 92 additions and 0 deletions

18
tutorial/10-tutorial.lisp Normal file
View file

@ -0,0 +1,18 @@
(defpackage #:clog-user
(:use #:cl #:clog)
(:export start-tutorial))
(in-package :clog-user)
(defun on-new-window (body)
(let* ((canvas (create-canvas body))
(cx (create-context2d canvas)))
)
(run body))
(defun start-tutorial ()
"Start turtorial."
(initialize #'on-new-window)
(open-browser))