mrdoob/stats.js — Issue #4: change style.color and style.backgroundColor to use hashes
Author: JL235
Created: 2011-10-24 23:39:22+00:00
State: open

Using the hash version of web colours (i.e. #ff0000) is faster then using rgb version (i.e. 'rgb(255, 0, 0)'), as shown using the benchmark: http://jsperf.com/setting-colour-style

Changing the code to create colour hashes instead of RGB will offer a minor speed up.