Awhile back, some girl, I assume, asked how she could make flowers with Perl. Everyone directed her to various ascii art modules or 2d graphics libraries, my personal offering would have been Tk::Zinc generation of petals. That code is quite complicated.
I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
But as the winter freeze sets in on my camp, I have found an ever-blooming flower, which can be generated with a single line of Perl code. screenshot 1 screenshot 2
#!/usr/bin/perl use PDL; use PDL::Graphics::TriD; # hit 'q' to exit imag3d [sqrt(rvals(zeroes(50,50))/2)], {Lines=>0};
I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: a 3D flower made with Perl
by teamster_jr (Curate) on Jan 06, 2012 at 11:15 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Perl Poetry