I am trying to create a scene with multiple images of the same type on that scene. I know how to create an image however, I need to create many images based on an arbitrary value 'n'. I believe the best way to accomplish this is through the function "(place-images images posn scene)". I understand how to accomplish the list of integer values for the second parameter 'posn' by doing "(build-list INT_VALUE values) however, I cant seem to figure out the proper way to create a list of images. Any suggestions on how this can be accomplished?

1 Answer

> (require 2htdp/image) > (build-list 5 (λ (n) (circle 10 "solid" "red"))) 

enter image description here

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.