Skip to content

Instantly share code, notes, and snippets.

@gretaf007
Created October 23, 2020 02:43
Show Gist options
  • Save gretaf007/bd20081ad6012b27343286f0b84e370c to your computer and use it in GitHub Desktop.
Save gretaf007/bd20081ad6012b27343286f0b84e370c to your computer and use it in GitHub Desktop.
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
@gretaf007
Copy link
Author

@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
CORAL_BG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment