Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 699 Bytes

set_text_color.md

File metadata and controls

24 lines (15 loc) · 699 Bytes

set_text_color

fpdf.set_text_color(r: int, g: int = -1, b: int = -1)

Description

Defines the color used for text. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.

Parameters

r:

If g and b are given, this indicates the red component; if not, this indicates the gray level. The value is between 0 and 255.

g:

Green component (between 0 and 255).

b:

Blue component (between 0 and 255).

See also

set_draw_color, set_fill_color, text, cell, multi_cell.