---
name: "PS_setgray"
section: "3"
platform: "linux"
package: "pslib-dev"
version: "0.4.8-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PS_setgray"
---

# PS\_setgray(3)

Sets gray value

## NAME

PS\_setgray — Sets gray value

## SYNOPSIS

\#include \<pslib.h\>

void PS\_setgray(PSDoc \*psdoc, float gray)

## DESCRIPTION

Sets the gray value for all following drawing operations. The value  must be between 0 (black) and 1 (white).

## SEE ALSO

[PS\_setcolor(3)](/PS_setcolor/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
