TCPDF::Gradient( $type,  $coords,  $stops,  $background = array(),  $antialias = false )

Output gradient.


Description Description


Parameters Parameters

$type

(Required) (int) type of gradient (1 Function-based shading; 2 Axial shading; 3 Radial shading; 4 Free-form Gouraud-shaded triangle mesh; 5 Lattice-form Gouraud-shaded triangle mesh; 6 Coons patch mesh; 7 Tensor-product patch mesh). (Not all types are currently supported)

$coords

(Required) (array) array of coordinates.

$stops

(Required) (array) array gradient color components: color = array of GRAY, RGB or CMYK color components; offset = (0 to 1) represents a location along the gradient vector; exponent = exponent of the exponential interpolation function (default = 1).

$background

(Optional) (array) An array of colour components appropriate to the colour space, specifying a single background colour value.

Default value: array()

$antialias

(Optional) (boolean) A flag indicating whether to filter the shading function to prevent aliasing artifacts.

Default value: false


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.