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

Paints a linear 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 (x1, y1, x2, y2) which defines the gradient vector (see linear_gradient_coords.jpg). The default value is from left to right (x1=0, y1=0, x2=1, y2=0).

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


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.