7 An Example

(open-graphics)
; nothing appears to happen, but the library is initialized...
 
(define w (open-viewport "practice" 300 300))
; viewport window appears
 
((draw-line w) (make-posn 30 30) (make-posn 100 100))
; line appears
 
(close-viewport w)
; viewport disappears
 
(close-graphics)
; again, nothing appears to happen, but
; unclosed viewports (if any) would disappear
 
var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?f1ba5b4a33d29d84db69f029b9ace483"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();