Source: es2015-modules.js

  1. /** @module color/mixer */
  2. /** The name of the module. */
  3. export const name = 'mixer';
  4. /** The most recent blended color. */
  5. export var lastColor = null;
  6. /**
  7. * Blend two colors together.
  8. * @param {string} color1 - The first color, in hexadecimal format.
  9. * @param {string} color2 - The second color, in hexadecimal format.
  10. * @return {string} The blended color.
  11. */
  12. export function blend(color1, color2) {}
  13. // convert color to array of RGB values (0-255)
  14. function rgbify(color) {}
  15. export {
  16. /**
  17. * Get the red, green, and blue values of a color.
  18. * @function
  19. * @param {string} color - A color, in hexadecimal format.
  20. * @returns {Array.<number>} An array of the red, green, and blue values,
  21. * each ranging from 0 to 255.
  22. */
  23. rgbify as toRgb
  24. }
THIS IS A DEMO: All content was generated with examples taken from the JSDoc page.