New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(empty-scene Width Height "black")
renders as white in playground
#320
Comments
I think I need to add a color parameter to
Perhaps (define-proto EmptyScene
(λ (width height borders?)
#:with-this this
(set-object! this
[type "empty-scene"]
[width width]
[height height]
[color "white"]
[borders? borders?]))
[render (λ (ctx x y)
;; TODO: borders?
(void))]) |
Thanks for the report. It looks like I'm wondering if we should just replace it with rectangle? Do you know what racket's 2htdp/image does? |
White rectangle with black border |
proposed PR #321 mirrors the implementation in |
merged #321 |
(empty-scene Width Height "black")
renders as whiteSample code; tested/reproduced in in playground macOS / Safari and Firefox
RacketScript Playground Program; view at: http://play.racketscript.org/#gist/2ef0bae9c4b44483a79a5d7c7be65b91
Note: seems to run faster in firefox in the playground that is does in safari or DrRacket on macOS (M1)
The text was updated successfully, but these errors were encountered: