MCPcopy Index your code
hub / github.com/CreateJS/TweenJS / getColorObj

Function getColorObj

src/tweenjs/plugins/ColorPlugin.js:176–179  ·  view source on GitHub ↗
(value, mode)

Source from the content-addressed store, hash-verified

174
175// private helper methods:
176 function getColorObj(value, mode) {
177 if (value[0] === "#") { return parseHex(value, mode); }
178 else { return parseRgbOrHsl(value, mode); }
179 }
180
181 function parseRgbOrHsl(value, mode) {
182 var o=[0,0,0,1], result = s.RGB_HSL_RE.exec(value);

Callers 1

ColorPlugin.jsFile · 0.85

Calls 2

parseHexFunction · 0.85
parseRgbOrHslFunction · 0.85

Tested by

no test coverage detected