[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyone/assets/js/ -> customize-helpers.js (summary)

(no description)

File Size: 39 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  twentytwentyoneGetHexLum()
  twentytwentyoneGetRgbFromHex()

Functions
Functions that are not part of a class:

twentytwentyoneGetHexLum( hex )   X-Ref
Get luminance from a HEX color.

param: {string} hex - The hex color.
return: {number} - Returns the luminance, number between 0 and 255.

twentytwentyoneGetRgbFromHex( hex )   X-Ref
Get RGB from HEX.

param: {string} hex - The hex color.
return: {Object} - Returns an object {r, g, b}



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref