4da

flomap->bitmap bug

4da
Apr 27th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.26 KB | None | 0 0
  1. #lang racket/gui
  2. (require images/flomap)
  3. (define (example)
  4.   (let ([bmp
  5.      (flomap->bitmap
  6.       (build-flomap 1 100 100
  7.             (? (k x y) (/ (+ x y) 200))))]
  8.     [bmp-buf (make-bytes (* 100 100 4))])
  9.  
  10. (send bmp get-argb-pixels 0 0 100 100 bmp-buf)))
  11.  
  12. (example)
Advertisement
Add Comment
Please, Sign In to add comment