[racket-dev] Caching rendered icons
Yesterday, Neil Toronto wrote:
>
> Here's an example that bakes a list of stickman animation frames into a
> compiled module:
>
> (begin-for-syntax
> (require images/icons/stickman)
> (define stickman-height 18)
> (define num-running-frames 12))
>
> (define running-frames
> (compiled-bitmap-list
> (for/list ([t (in-range 0 1 (/ 1 num-running-frames))])
> (running-stickman-icon t run-icon-color "white" run-icon-color
> stickman-height))))
>
> [...]
>
> There are very few restrictions on the arguments now. They just have to
> be valid in the transformer phase.
This sounds like something that would lead to all kinds of amusing
confusions...
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!