paint other image
Closed this issue · 2 comments
chaomaer commented
I want to paint other images like
(paint einstein)
how to implement this? thanks.
soegaard commented
Hi. Use the new version of the painter language.
- Download https://github.com/sicp-lang/sicp/blob/master/sicp-pict2/sicp.rkt
and the einstein image: https://raw.githubusercontent.com/sicp-lang/sicp/master/sicp-pict2/einstein2.jpg
(save them in the same folder) - Open "sicp.rkt" in DrRacket
- Run it (to check that everything works)
- Use (bitmap->painter "my image.jpg") to make a painter that draws a bitmap.
chaomaer commented
thanks you , it works.