TCPDF::RadialGradient( $x,  $y,  $w,  $h,  $col1 = array(),  $col2 = array(),  $coords = array(0.5, 0.5, 0.5, 0.5, 1) )

Paints a radial colour gradient.


Description Description


Parameters Parameters

$x

(Required) (float) abscissa of the top left corner of the rectangle.

$y

(Required) (float) ordinate of the top left corner of the rectangle.

$w

(Required) (float) width of the rectangle.

$h

(Required) (float) height of the rectangle.

$col1

(Optional) (array) first color (Grayscale, RGB or CMYK components).

Default value: array()

$col2

(Optional) (array) second color (Grayscale, RGB or CMYK components).

Default value: array()

$coords

(Optional) (array) array of the form (fx, fy, cx, cy, r) where (fx, fy) is the starting point of the gradient with color1, (cx, cy) is the center of the circle with color2, and r is the radius of the circle (see radial_gradient_coords.jpg). (fx, fy) should be inside the circle, otherwise some areas will not be defined.

Default value: array(0.5, 0.5, 0.5, 0.5, 1)


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.1.000 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.