php8.5
Home/ Manual/ ps / functions/ ps_setgray

ps_setgray

PHP function Edit on GitHub ✎

(PECL ps >= 1.1.0)

Sets gray value

Description

ps_setgray(resource $psdoc, float $gray): bool

Sets the gray value for all following drawing operations.

Parameters

psdoc

Resource identifier of the postscript file as returned by ps_new().

gray

The value must be between 0 (white) and 1 (black).

Return Values

Success

See Also

Source: reference/ps/functions/ps-setgray.xml · from the official PHP manual (php/doc-en)