MCPcopy Index your code
hub / github.com/davidmerfield/randomColor / defineColor

Function defineColor

randomColor.js:349–361  ·  view source on GitHub ↗
(name, hueRange, lowerBounds)

Source from the content-addressed store, hash-verified

347 }
348
349 function defineColor(name, hueRange, lowerBounds) {
350 var sMin = lowerBounds[0][0],
351 sMax = lowerBounds[lowerBounds.length - 1][0],
352 bMin = lowerBounds[lowerBounds.length - 1][1],
353 bMax = lowerBounds[0][1];
354
355 colorDictionary[name] = {
356 hueRange: hueRange,
357 lowerBounds: lowerBounds,
358 saturationRange: [sMin, sMax],
359 brightnessRange: [bMin, bMax],
360 };
361 }
362
363 function loadColorBounds() {
364 defineColor("monochrome", null, [

Callers 1

loadColorBoundsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…