This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; For hacker Derick | |
(import (rnrs) | |
(gl) | |
(glut) | |
(agave glu) | |
(agave glamour window) | |
(agave glamour misc) | |
(agave glamour mouse)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import (rnrs) | |
(gl) | |
(glut) | |
(agave glu) | |
(agave glamour window) | |
(agave glamour misc) | |
(agave glamour mouse)) | |
(initialize-glut) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; spherical plot with lighting | |
(import (rnrs) | |
(gl) | |
(glut) | |
(agave glu) | |
(agave glamour window) | |
(agave glamour misc) | |
(agave glamour mouse)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
#| | |
* accessing | |
(first seq) | |
(last seq) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(define (make-indexable-fold-left size ref) | |
(define (fold-left seq val proc) | |
(let ((n (size seq))) | |
(let loop ((i 0) (val val)) | |
(if (>= i n) | |
val |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; iterable: list ra-list stream | |
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(define (make-iterable-fold-left empty? next rest) | |
(define (fold-left seq val proc) | |
(let loop ((seq seq) (val val)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(library (sequences define-indexable-sequence-procedures) | |
(export define-indexable-sequence-procedures) | |
(import (rnrs) | |
(dharmalab misc gen-id) | |
(sequences indexable-functors)) | |
(define-syntax define-indexable-sequence-procedures |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Original version in Processing: | |
// | |
// http://www.openprocessing.org/visuals/?visualID=323 | |
using math , ffi , GL , GLU , GLUT ; | |
GLUT::Init {0} NULL ; | |
GLUT::InitDisplayMode ( GLUT::DOUBLE or GLUT::RGB or GLUT::DEPTH ) ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Original version in Processing: | |
// | |
// http://www.openprocessing.org/visuals/?visualID=323 | |
using math , ffi , GL , GLU , GLUT , glamour ; | |
GLUT::Init {0} NULL ; | |
GLUT::InitDisplayMode ( GLUT::DOUBLE or GLUT::RGB or GLUT::DEPTH ) ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Original version in Processing: | |
// | |
// http://www.openprocessing.org/visuals/?visualID=323 | |
using math , ffi , GL , GLU , GLUT ; | |
GLUT::Init {0} NULL ; | |
GLUT::InitDisplayMode ( GLUT::DOUBLE or GLUT::RGB or GLUT::DEPTH ) ; |