Created
September 27, 2022 22:03
-
-
Save pramatias/856ddefb53448bae6f8b90fc31e6cc0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require 2htdp/image) | |
(define image (empty-scene 400 400 (color 200 40 98 127))) | |
(define brown_stones (beside | |
(triangle (random 0 100) "solid" "black") | |
(triangle (random 0 100) "solid" "cyan") | |
(triangle (random 0 100) "solid" "black") | |
(triangle (random 0 100) "solid" "cyan") | |
(triangle (random 0 100) "solid" "black"))) | |
(define (ellipses x) | |
(if (> x 50) (ellipse 99 50 127 "blue") | |
(beside | |
(ellipse x (* 2 x) 127 "yellow") | |
(ellipses (+ x 5))))) | |
(place-image/align (ellipses 2) 200 200 "center" "bottom" | |
(place-image/align brown_stones 200 300 "center" "bottom" | |
(place-image/align (bitmap/file "/home/emporas/sanddust.png") 0 0 "left" "top" | |
image))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment