You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result of display-frame is a bitmap% object. The results of each top expression have an implicit println, so the first example,
(println (set-frame dc (make-color 255 255 255))) ; --> (println (void)) doen't show anything
(println (display-frame dc)) ; --> shows a square
The expressions inside for or any other construction don't have the implicit println. So in the second example
(for ([x (in-range 4)])
(set-frame dc (make-color 255 0 0)) ; --> not shown
(display-frame dc); --> not shown
) ; --> the result of for is (void), so --> (println (void)) doen't show anything
I am drawing bitmaps to the output like so
However if I try to loop and send the bitmap to the output like so I don't see anything
I am not sure why its not working, but I am sure I am just making some noobie mistake.
The text was updated successfully, but these errors were encountered: