http://www.perlmonks.org?node_id=946238

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.

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
    very nice. my entry would be this

    edit: and in fact I originally started looking at rendering a mathematically generated 3d flower... I guess you beat me to it :)

    a

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.