Name
set_text_clr — set the color to be used for drawing text
Synopsis
GIFgraph::set_text_clr(colorname
)
This method
will set the color to be used for all of the text within a graph. The
colorname must be a valid GIFgraph color name
(see “Colors in GIFgraph”). You can also specify the
colors of individual elements of a graph separately with the
set( )
method and the attributes
textclr
, labelclr
, and
axislabelclr
.
Here is an example:
$somegraph->set_text_clr( 'dgreen' ); # dgreen is the same as #007F00
Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.