mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 10:40:45 -08:00
Start of clog-canvas
This commit is contained in:
parent
31054ad9d2
commit
e75def587d
4 changed files with 92 additions and 0 deletions
18
tutorial/10-tutorial.lisp
Normal file
18
tutorial/10-tutorial.lisp
Normal 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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue