wp_tinycolor_bound01
- %1$s is private and should not be used in themes or plugins directly.
- wp_tinycolor_bound01 is deprecated since version 6.3.0!
wp_tinycolor_bound01 ( $n, $max )
Access:Parameters:- (mixed) n Number of unknown type.
- (int) max Upper value of the range to bound to.
Links:Returns:- (float) Value in the range [0, 1].
Defined at: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: 6.3.0
Description
Takes input from [0, n] and returns it as [0, 1].Direct port of TinyColor's function, lightly simplified to maintain
consistency with TinyColor.