1
2
3
4
function state_classes(updateall) {
    var value = display.value * 1, tempcolor;
    for (var i = 1; i <= 118; i++) {
...

JavaScript Color elements by state of ...

by Lucent, September 15, 2008 17:09, 3 refactorings, tagged with speed

Logic is cheap and DOM is e...

38daf62a7887b44454a78a37552b22e4 Talk

JavaScript On Hex color between two colors

by Lucent, April 30, 2008 23:10

Beautiful! I noticed the su...

38daf62a7887b44454a78a37552b22e4 Talk
1
2
3
4
function calc_color(value, start, end, min, max) {
    var n = (value - min) / (max - min);
    var s = parseInt(start.replace("#", ""), 16);
...

JavaScript Hex color between two colors

by Lucent, March 11, 2008 08:27, 3 refactorings, tagged with speed

Watch out for edge cases, l...

38daf62a7887b44454a78a37552b22e4 Talk