略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SWFGradient::addEntry

2024-12-20

SWFGradient::addEntry

(PHP 5 < 5.3.0, PECL ming SVN)

SWFGradient::addEntryAdds an entry to the gradient list

说明

SWFGradient::addEntry ( float $ratio , int $red , int $green , int $blue [, int $alpha = 255 ] ) : void
Warning

此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。

swfgradient::addentry() adds an entry to the gradient list. ratio is a number between 0 and 1 indicating where in the gradient this color appears. Thou shalt add entries in order of increasing ratio.

red, green, blue is a color (RGB mode).

返回值

没有返回值。

add a note add a note

User Contributed Notes 1 note

up
0
jolyon at mways dot co dot uk
16 years ago
You only appear to be able to add up to 8 entries per gradient

官方地址:https://www.php.net/manual/en/swfgradient.addentry.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3