Need help getting started?
-
https://github.com/standard-fish/paper-doll - provided by Matthew Flatt:
'In case it's of interest, enclosed is some code extracted from one of my talks. Start by running "demo.rkt". Someone might be interested to play with it or turn it into something better. Since there is no documentation, that someone would have to read the code to extract the various acceptable values for arguments. The most obvious direction for improvement is that choices like hair style and color should have been separated into different arguments."
Having trouble? - ask a question on racket-users. You can also try stack-overflow and reddit but YMMV.
Libraries that can be used to make images:
- Pict: Functional Pictures
- 2htdp/image
- Metapict -
- Pict3D: Functional 3D Scenes - go 3D!
- Plot: Graph Plotting - a graph plotting library that produces lovely plots.
- Lindenmayer - The Lindenmayer language provides a language for running and interpreting Lindenmayer Systems. In general L-systems are useful for modeling plant growth, procedural content generation, and making pretty pictures:
- Planet Cute Images - The 2htdp/planetcute library contains the Planet Cute art by Daniel Cook (Lostgarden.com).
How to save a pict
;; convert the 'pict' image to a 'bitmap' image
(define bitmap-waffle (pict->bitmap the-waffle))
;; tell the bitmap waffle to save itself to a .png file
(send bitmap-waffle save-file "images/waffle.png" 'png)