Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

a 3D flower made with Perl, for anonymous girl

by zentara (Archbishop)
on Jan 04, 2012 at 13:56 UTC ( [id://946238]=poem: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: poem [id://946238]
Approved by Ratazong
Front-paged by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-18 00:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found