|
![](/i/fill.gif) |
Gary Thompson's quine page has an example that uses #debug to output itself
to the message window.
http://www.nyx.net/~gthompso/self_pov.txt
Here's the code for it:
#declare e="#declare e=#debug
concat(substr(e,1,11),chr(34),e,chr(34),substr(e,12,71))box{x y}"
#debug concat(substr(e,1,11),chr(34),e,chr(34),substr(e,12,71))box{x y}
- autowitch
"Warp" <war### [at] tag povray org> wrote in message
news:3b4f7f82@news.povray.org...
> Ron Parker <ron### [at] povray org> wrote:
> : I was disappointed, though. I'd hoped it would be self-referential,
like
> : mine was.
>
> Self-referential is nothing. If you want a real challenge, try making
> a povray code which renders itself (ie. the source code itself).
> (You can use timrom.ttf for that.)
>
> --
> #macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
> rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
> ],13),8)-3,10>#end blob{N(array[6]{11117333955,
> 7382340,3358,3900569407,970,4254934330},0)}// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |