wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/block-supports/duotone.php › WordPress File
Functions11
› Duotone block support flag.
Function | Short description |
---|---|
wp_get_duotone_filter_id | Returns the prefixed id for the duotone filter for use as a CSS id. |
wp_get_duotone_filter_property | Returns the CSS filter property url to reference the rendered SVG. |
wp_get_duotone_filter_svg | Returns the duotone filter SVG string for the preset. |
wp_register_duotone_support | Registers the style and colors block attributes for block types that support it. |
wp_render_duotone_support | Renders out the duotone stylesheet and SVG. |
wp_tinycolor_bound01 | Takes input from [0, n] and returns it as [0, 1]. |
wp_tinycolor_hsl_to_rgb | Converts an HSL object to an RGB object with converted and rounded values. |
wp_tinycolor_hue_to_rgb | Helper function for hsl to rgb conversion. |
wp_tinycolor_rgb_to_rgb | Rounds and converts values of an RGB object. |
wp_tinycolor_string_to_rgb | Parses hex, hsl, and rgb CSS strings using the same regex as TinyColor v1.4.2 used in the JavaScript. Only colors output from react-color are implemented. |
_wp_tinycolor_bound_alpha | Direct port of tinycolor's boundAlpha function to maintain consistency with how tinycolor works. |