How samie-mirghani/citygraphics works
CityGraphics is a Swing desktop app for interactively rendering a procedural cityscape with user-selected birds and rain. The workflow runs from launching the window, through entering counts and clicking Draw Picture, to creating randomized elements and repainting the canvas. City composes the buildings and environment and renders the weather and wildlife; Bird and Rain hold the coordinates used for drawing. The README documents additional scene details such as clouds, waves, and the recycling bin. Relationships reflect the excerpts and README; no unsampled source was assumed.
Main entry points: setup.java Input controls · City.java City renderer · ProjectMain.java Window launcher · Bird.java Bird coordinates
Components 7
Swing interface
- Window launcher
ProjectMain.java - Input controls
setup.java - Drawing panel
setup.java
Scene rendering
- City renderer
City.java
Element models
- Bird coordinates
Bird.java - Rain coordinates
Rain.java
Other components
- User
Connections 7
- User → Input controls: enters counts
README.md - Window launcher → Input controls: creates UI
ProjectMain.java - Input controls → City renderer: sets elements
setup.java - Input controls → Drawing panel: requests repaint
setup.java - Drawing panel → City renderer: renders scene
setup.java - City renderer → Bird coordinates: creates and reads
City.java - City renderer → Rain coordinates: creates and reads
City.java