Page MenuHomePhabricator
Authored By
Gilles
Oct 23 2014, 10:13 PM
Size
362 B
Referenced Files
None
Subscribers
None
Table table = loadTable("viewport.csv", "header");
size(2500, 2500);
background(0);
for (TableRow row : table.rows()) {
int count = row.getInt("count");
int width = row.getInt("width");
int height = row.getInt("height");
stroke( 255.0, min( 255.0, (log( float( count ) ) / 4.8) * 255.0), 0.0 );
point(width, height);
}
save("viewport heatmap.png");

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
400
Default Alt Text
Heatmap (362 B)

Event Timeline