Overview
Comment: | junk |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.65 |
Files: | files | file ages | folders |
SHA1: |
351fd3ff4fd7df647baa430e6ed5a131 |
User & Date: | mrwellan on 2019-04-04 10:35:05 |
Other Links: | branch diff | manifest | tags |
Context
2019-04-12
| ||
16:55 | Added log dir output to mtutil run calls check-in: ec43e24ac4 user: jmoon18 tags: v1.65, v1.6528 | |
2019-04-04
| ||
10:35 | junk check-in: 351fd3ff4f user: mrwellan tags: v1.65 | |
10:30 | junk check-in: ac8a516285 user: mrwellan tags: v1.65 | |
Changes
Modified junk/cube.scm from [a44db36c6b] to [81ad57f1fa].
︙ | ︙ | |||
14 15 16 17 18 19 20 | (3 . ,green ) ;; green (4 . ,yellow ) ;; yellow (5 . ,white ) ;; white (6 . ,orange ) ;; orange (7 . ,black ) ;; black )) | > | | | | | | | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | (3 . ,green ) ;; green (4 . ,yellow ) ;; yellow (5 . ,white ) ;; white (6 . ,orange ) ;; orange (7 . ,black ) ;; black )) ;; retrive color (define (rc c) (alist-ref c colors)) (defstruct cspec (x 0) (y 0) (z 0) (n (rc 1)) ;; north (s (rc 1)) ;; south (e (rc 1)) ;; east (w (rc 1)) ;; west (t (rc 1)) ;; top (b (rc 1))) ;; bottom (define a 0) (define (spin id) (set! a (modulo (+ a 1) 360))) (define (colorize id col) |
︙ | ︙ | |||
89 90 91 92 93 94 95 | ;; (add-object draw-polygon animate: spin select: (lambda _ (print "oink!"))) (gl:Clear gl:COLOR_BUFFER_BIT) (for-each (lambda (dat) ;; (let ((c1 (make-cspec e: red w: blue n: green s: yellow t: white b: orange))) (match dat ((x y z n s e w t b) | | | 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | ;; (add-object draw-polygon animate: spin select: (lambda _ (print "oink!"))) (gl:Clear gl:COLOR_BUFFER_BIT) (for-each (lambda (dat) ;; (let ((c1 (make-cspec e: red w: blue n: green s: yellow t: white b: orange))) (match dat ((x y z n s e w t b) (let ((c1 (make-cspec x: x y: y z: z n: (rc n) s: (rc s) e: (rc e) w: (rc w) t: (rc t) b: (rc b)))) (pp (cspec->alist c1)) (add-object (make-cuber c1) select: (lambda _ (print "oink!"))))) (else (print "bad object " dat)))) data) (gl:Flush) (start-viewer) |