Skip to content

Instantly share code, notes, and snippets.

@pramatias
Created September 27, 2022 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pramatias/856ddefb53448bae6f8b90fc31e6cc0b to your computer and use it in GitHub Desktop.
Save pramatias/856ddefb53448bae6f8b90fc31e6cc0b to your computer and use it in GitHub Desktop.
#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