Displaying graphics - beginner programmer

B

Bulb

Hi, I am new to Perl and am trying to learn how to display simple
graphics.

For example, I want to display rectangles of different colors all in a
line, connected to each other.

First, do I need a special module for graphics, or are there built-in
commands for graphics?

Secondly, can anyone recommend a method to create a chain of connected
rectangles? Nothing fancy, just very simple.

All help appreciated!

Thanks,

Bulb
 
S

Scott W Gifford

Hi, I am new to Perl and am trying to learn how to display simple
graphics.

For example, I want to display rectangles of different colors all in a
line, connected to each other.

First, do I need a special module for graphics, or are there built-in
commands for graphics?

GD is a good straightforward module for creating graphics:

http://search.cpan.org/~lds/GD/
Secondly, can anyone recommend a method to create a chain of connected
rectangles? Nothing fancy, just very simple.

The "rectangle" method of GD will probably do what you want.

----ScottG.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top