[ 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.

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

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

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



Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref