(PHP 3 >= 3.0.6, PHP 4, PECL)
Set the current fill and stroke color. Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
Замечание: PDFlib V4.0: Deprecated, use pdf_setcolor() instead.
pdf_setgray double values start at 0 for black and end at 1 for white so for any shade of gray simply pick a value inbetween these 2 numbers