Round the computed colors a bit to reduce flickering.
(each color change requires regenerating the svg icon)
This commit is contained in:
parent
18bd8b630d
commit
90f5a7d4e3
|
@ -262,7 +262,7 @@ PlaneObject.prototype.getMarkerColor = function() {
|
||||||
if (l < 5) l = 5;
|
if (l < 5) l = 5;
|
||||||
else if (l > 95) l = 95;
|
else if (l > 95) l = 95;
|
||||||
|
|
||||||
return 'hsl(' + h.toFixed(0) + ',' + s.toFixed(0) + '%,' + l.toFixed(0) + '%)'
|
return 'hsl(' + (h/5).toFixed(0)*5 + ',' + (s/5).toFixed(0)*5 + '%,' + (l/5).toFixed(0)*5 + '%)'
|
||||||
}
|
}
|
||||||
|
|
||||||
PlaneObject.prototype.updateIcon = function() {
|
PlaneObject.prototype.updateIcon = function() {
|
||||||
|
|
Loading…
Reference in a new issue