=head1 NAME

Perl 6 interface to the Gd graphics library.

=head1 DESCRIPTION

Perl6 interface to Thomas Boutell's gd graphics library. GD allows you
to create color drawings using a large number of graphics primitives,
and emit the drawings in multiple formats.
You will need the Linux gd-libgd library or OS X gd2 port installed
in order to use perl6-GD (preferably a recent version).

=head1 SYNOPSIS

	use GD;

	my $image = GD::Image.new(200, 200);
	exit() unless $image;

	my $black = $image.colorAllocate(
		red   => 0,
		green => 0,
		blue  => 0);

	my $white = $image.colorAllocate(
		red   => 255,
		green => 255,
		blue  => 255);

	my $red = $image.colorAllocate("#ff0000");
	my $green = $image.colorAllocate("#00ff00");
	my $blue = $image.colorAllocate(0x0000ff);

	$image.rectangle(
		location => (10, 10),
		size     => (100, 100),
		fill     => True,
		color    => $white);

	$image.line(
		start => (10, 10),
		end   => (190, 190),
		color => $black);

	my $png_fh = $image.open("test.png", "wb");

	$image.output($png_fh, GD_PNG);

	$png_fh.close;

	$image.destroy();

	exit();

=head1 API REFRENCE

The perl6 API

=head2 Color Control

=head3 C<colorAllocate>

=head2 Drawing Commands

=head3 C<pixel>

=head3 C<line>

=head3 C<rectangle>

=head3 C<arc>

=head3 C<circumference>

=head3 C<ellipse>

=head3 C<polygon>

=head1 AUTHOR

Henrique Dias - L<mrhdias@mail.com>

=head1 SEE ALSO

=over 4

=item *

GD Source Repository L<https://bitbucket.org/pierrejoye/gd-libgd>

=item *

C examples from GD source repository L<https://bitbucket.org/pierrejoye/gd-libgd/src/2b8f5d19e0c9/examples>

=back

=head1 LICENSE

This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
