Skip to content

Conversation

botmayank
Copy link
Owner

  • Adds AQI based particles data using https://waqi.info
  • Shows PM2.5 and PM10 based particles
  • Refactors and reorganizes the pollution sketches

Add random mouse based follow modes
Set radius, color, topspeed, inertia in ctor for Mover
Gets AQI from waqi.info for a specific city every POLLING_INTERVAL seconds and prints to console.
Just entering city doesn't guarantee a station which has detailed info about each particle type.
Use getAqiVal to return int
Fog using shaders randomly filling up the screen
Clean up text variables a bit too
@botmayank botmayank requested a review from chitraa January 4, 2020 11:50
@botmayank botmayank self-assigned this Jan 4, 2020
Since target positions are updated based on no. of particles % skeleton body points, logic breaks for num particles < body points. Easiest fix is to map num particles to atleast be 20 (no of body points).
* Body ellipses get drawn independent of particles now.
* PM 2.5 won't overlap on body vertex since randomness of +-width/10 and height/10 in x and y
* PM10 also track body with randomness of +- width/4 and height/4
* MIN_PARTICLES_25 and 10 can be set to 3 or any small number. Need not be 20
Also set values for speed and inertia based on a global list for each AQI cat.
Don't just pick up hue, but full HSB values for AQI. PM2.5 and PM10 brightness values offset by 25.
Recalculate random position for each particle instead of using same target point once body leaves while randomizing movers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant