MCPcopy Create free account
hub / github.com/schteppe/cannon.js / hueGradient

Function hueGradient

libs/dat.gui.js:3266–3273  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3264 }
3265
3266 function hueGradient(elem) {
3267 elem.style.background = '';
3268 elem.style.cssText += 'background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);'
3269 elem.style.cssText += 'background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);'
3270 elem.style.cssText += 'background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);'
3271 elem.style.cssText += 'background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);'
3272 elem.style.cssText += 'background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);'
3273 }
3274
3275
3276 return ColorController;

Callers 1

ColorControllerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected