Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: GD::Text::Arcby da (Friar) |
on Jan 24, 2004 at 10:22 UTC ( [id://323813]=note: print w/replies, xml ) | Need Help?? |
Hey, spirals. That would be neat. But no, it doesn't currently. If somebody can suggest an algorythm that works with my code, I could make it do spirals. I was getting a headache even trying to figure out how to make it do ovals (*)...
Other items on my wish-list:
(*) The complication giving me trouble is that I need to recalculate the position (or drawing-angle) for each letter, to account for the fact that GD draws TrueType characters from the lower-left corner, not the center. I could easily set a separate scaling factor for X and Y coordinates (to make ovals), just like I could vary the radius on-the-fly (to make a spiral) but the problem is that the letters will be angled oddly (as if they were supposed to be in a circle). Too much for this bear of little brain! But, if you have suggestions, I'm all ears.
In Section
Cool Uses for Perl
|
|