wp_tinycolor_bound01


wp_tinycolor_bound01 ( $n, $max )

Access:
  • private
Parameters:
  • (mixed) n Number of unknown type.
  • (int) max Upper value of the range to bound to.
See:
Returns:
  • (float) Value in the range [0, 1].
Defined at:

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.

Related Functions

wp_tinycolor_rgb_to_rgb, wp_tinycolor_hsl_to_rgb, wp_tinycolor_hue_to_rgb, wp_tinycolor_string_to_rgb, wp_tag_cloud

Top Google Results

User discussions

wpseek mobile