Platforms
hic et nunc
Description
''' Exxon Valdez 2 by Brett Stalbaum and Gemma 2.0
That was actually pretty good gemma2! You don't give yourself credit. You di ... d leave out the brown background color (maybe you covered it up with the sli ... ck) and there could be more birds, more workers, and a tanker in Exxon color ... s. Can you write that program? You got it! I can definitely add those elements to make the scene a bit more complete.
'''
import pygame
# Initialize Pygame
pygame.init()
# Set window size
width = 1920
height = 1080
screen = pygame.display.set_mode((width, height))
# Colors:
exxon_red = (220, 0, 0)
oil_black = (0, 0, 0)
bird_gray = (150, 150, 150)
worker_blue = (0, 0, 255)
background_brown = (139, 69, 19)
# Background
screen.fill(background_brown)
# Draw the oil slick (circle)
pygame.draw.circle(screen, oil_black, (width // 2, height // 2), 200)
# Exxon tanker (very simplified rectangle)
tanker = pygame.Rect((width // 4, height // 3), (150, 60))
pygame.draw.rect(screen, exxon_red, tanker)
# Add more birds
for i in range(10):
bird = pygame.Rect((width // 4 + i * 50, height // 3), (20, 15))
pygame.draw.rect(screen, bird_gray, bird)
# Add more workers
for i in range(5):
worker = pygame.Rect((width - 100 - i * 40, height - 100), (40, 60))
pygame.draw.rect(screen, worker_blue, worker)
pygame.display.flip() # Update the display
# Save the image
pygame.image.save(screen, "exxon_valdez2.png") # I gave it an updated name to not clobber the first file
pygame.quit()
'''
Improvements:
- Background Color: Now sets a brown background as you requested.
- More Birds and Workers: Adds more instances of both to populate the scene.
- Exxon Tanker: Creates a simplified rectangle representing the tanker using Exxon's red color.
Remember that this is still a very basic representation. To achieve greater realism and emotional impact, you would need to explore more advanced graphics techniques and assets. # of course, trained on the great lowest common denominator, misses the point '''
On-Chain Data