Created
October 23, 2020 02:43
-
-
Save gretaf007/bd20081ad6012b27343286f0b84e370c 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
def setup(): | |
size(750,750) | |
background(100,150,255) | |
fill(153) | |
#coral line 2 | |
photo = loadImage("CORAL_BG.png") | |
image(photo, 0, 0) | |
#big rocks lines 1 + 3 | |
i = 100 | |
while i <= 500: | |
j = 135 | |
while j <= 600: | |
circle(i, j, 30) | |
j = j + 400 | |
i = i + 400 | |
#left small rock lines 1 + 3 | |
i = 115 | |
while i <= 750: | |
j = 160 | |
while j <= 600: | |
circle(i, j, 11) | |
j = j + 400 | |
i = i + 400 | |
#right small rock lines 1 + 3 | |
i = 130 | |
while i <= 750: | |
j = 145 | |
while j <= 750: | |
circle(i, j, 11) | |
j = j + 400 | |
i = i + 400 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rors
Is there a simpler way to make these loops? Also, I can't figure out why my image is not showing up. Is it because it is a PNG? here is the file if you need it to run it.
thanks, Greta