|
journal
all | Rob is 20,356 days old today. |
|
Entries this day: pop-pop-chaos-now-features-color-coded-pressure-or-something pop pop chaos now features color coded pressure or something 00:11 Monday 31 August 2015 JSTNice! Fred suggested I use color to indicate how close a bubble was to popping. I told him it was a good idea, though I already had it in mind, possibly from Travis or Johan, but just hadn't implemented it yet. Now it's part of the game, and was reallly easy to do, thanks to d3: I changed var circleColor = function(d) {
return d.color;
};
to var circleColor = function(d) {
return d3.rgb(d.color).darker(2*(d.touches/d.maxTouches));
};
https://archive.is/rLEVo shows the latest snapshot I've taken. permalink |