Forum und email

SWFGradient->addEntry()

(PHP 4 >= 4.3.0)

SWFGradient->addEntry() — Adds an entry to the gradient list

Description

SWFGradient
void addEntry ( float $ratio , int $red , int $green , int $blue [, int $a ] )
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). Last parameter a is optional.

Return Values

No value is returned.