in reply to cgi graphics

Hi folks. Thanks for all your responses. I'll try to be a little more specific. A user inputs a set of numbers and the server returns an array @angles containing angle values from 0 to 180. I want to display each one of those values in an RGB circle--so yes, each circle needs to be made dynamically.

Replies are listed 'Best First'.
Re^2: cgi graphics (table with punch out discs)
by Aristotle (Chancellor) on May 05, 2003 at 18:10 UTC
    If you can make do with the layout restrictions of a table, then you can actually produce circles without generating each of them dynamically. The trick is to use only one graphic, which is opaque on the "outside" areas, filled with the color of your page's background, and has a disc-shaped transparent area punched out in the center. If you place this image in a table cell with a background color set, it will give the appearance of a disc filled the table cell's background color.

    Makeshifts last the longest.

Re: cgi graphics
by Anonymous Monk on May 05, 2003 at 17:27 UTC
    Hi there, Do you absolutely HAVE to use circles? Because if not, then you could create a table, and just fill in specific cells with specific BG colors. Your colors would be squares (or rectangles), but the download time would be much faster than rendering each graphic. Just an idea. -n8