in reply to GD and colors
This makes your color choices fail because later on in Graph you there is a line (at line # 443) that does a:=item dclrs (short for datacolours) This controls the colors for the bars, lines, markers, or pie slices. This should be a reference to an array of colour names as defined in L<GD::Graph::colour> (S<C<perldoc GD::Graph::colour>> for the names av +ailable). $graph->set( dclrs => [ qw(green pink blue cyan) ] );
Update:_rgb($self->{dclrs}[$_[0] % @{$self->{dclrs}} - 1]);
add_colour(colourname => [$r, $g, $b]) or add_colour('#7fe310') Self-explanatory. Exported with the :colours tag.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: GD and colors
by samizdat (Vicar) on Jun 28, 2005 at 17:12 UTC |