🌍 Public
Viewing a saved revision (read-only)
99b77d1f8c454d7b9ec1f2f085dbfe9b
P5js Heatmap big test
This p5.js example displays a small heatmap comparing horsepower and MPG across six car brands, with green cells indicating higher values and orange indicating lower values. It loads data from a CSV file using the p5.js `loadTable` function, then renders colored squares via the `square()` canvas API. The `heatMapColorforValue()` function maps each numeric value to a hue range using p5.js `map()`, while the table’s Max and Min rows drive the color scaling for both columns.
AI-generated description