Changeset 52301
- Timestamp:
- 12/01/2021 02:06:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/duotone.php
r52069 r52301 46 46 * @param mixed $n Number of unknown type. 47 47 * @param int $max Upper value of the range to bound to. 48 *49 48 * @return float Value in the range [0, 1]. 50 49 */ … … 79 78 * @access private 80 79 * 81 * @param mixed $nNumber of unknown type.82 * @return float 80 * @param mixed $n Number of unknown type. 81 * @return float Value in the range [0,1]. 83 82 */ 84 83 function _wp_tinycolor_bound_alpha( $n ) { … … 93 92 94 93 /** 95 * Round and convertvalues of an RGB object.94 * Rounds and converts values of an RGB object. 96 95 * 97 96 * Direct port of TinyColor's function, lightly simplified to maintain … … 104 103 * 105 104 * @param array $rgb_color RGB object. 106 *107 105 * @return array Rounded and converted RGB object. 108 106 */ … … 129 127 * @param float $q second component. 130 128 * @param float $t third component. 131 *132 129 * @return float R, G, or B component. 133 130 */ … … 152 149 153 150 /** 154 * Convert an HSL object to an RGB object with converted and rounded values.151 * Converts an HSL object to an RGB object with converted and rounded values. 155 152 * 156 153 * Direct port of TinyColor's function, lightly simplified to maintain … … 163 160 * 164 161 * @param array $hsl_color HSL object. 165 *166 162 * @return array Rounded and converted RGB object. 167 163 */ … … 206 202 * 207 203 * @param string $color_str CSS color string. 208 *209 204 * @return array RGB object. 210 205 */ … … 394 389 395 390 * @param array $preset Duotone preset value as seen in theme.json. 396 *397 391 * @return string Duotone CSS filter property. 398 392 */ … … 484 478 * @param string $block_content Rendered block content. 485 479 * @param array $block Block object. 486 *487 480 * @return string Filtered block content. 488 481 */
Note: See TracChangeset
for help on using the changeset viewer.