_wp_tinycolor_bound_alpha
函数
_wp_tinycolor_bound_alpha ( $n )
- Access
- Private
- 参数
-
-
(mixed)
$n
Number of unknown type.- Required: 是
-
(mixed)
- 返回值
-
- (float) Value in the range [0,1].
- 相关
-
- https://github.com/bgrins/TinyColor
- 定义位置
-
-
wp-includes/block-supports/duotone.php
, line 83
-
wp-includes/block-supports/duotone.php
- 引入
- 5.9.0
- 弃用
- –
Direct port of tinycolor’s boundAlpha function to maintain consistency with
how tinycolor works.
function _wp_tinycolor_bound_alpha( $n ) { if ( is_numeric( $n ) ) { $n = (float) $n; if ( $n >= 0 && $n
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。