POV-Ray : Newsgroups : povray.text.scene-files : For Zilvah Server Time
1 Nov 2024 11:16:18 EDT (-0400)
  For Zilvah (Message 1 to 1 of 1)  
From: Peter Popov
Subject: For Zilvah
Date: 29 Apr 2000 04:02:04
Message: <fi4lgs41irlrb5ihjdjgh11iq0ef5o9o53@4ax.com>
#include "colors.inc"

#declare MaxL = 5;

#macro Daisy ( X, Y, R, L)
  torus 
  { R, 0.025 translate <X,-0.01*L,Y> 
    pigment { Green*(MaxL-L)/MaxL + Red } 
  }
  #local Pos=R*2/3;
  #local NewR=R/3;
  #if (L > 0)
    Daisy ( X,Y, NewR, L-1)

    Daisy ( X+(cos(radians(0)  )*Pos),
            Y+(sin(radians(0)  )*Pos), NewR, L-1)

    Daisy ( X+(cos(radians(60) )*Pos),
            Y+(sin(radians(60) )*Pos), NewR, L-1)

    Daisy ( X+(cos(radians(120))*Pos),
            Y+(sin(radians(120))*Pos), NewR, L-1)

    Daisy ( X+(cos(radians(180))*Pos),
            Y+(sin(radians(180))*Pos), NewR, L-1)

    Daisy ( X+(cos(radians(240))*Pos),
            Y+(sin(radians(240))*Pos), NewR, L-1)

    Daisy ( X+(cos(radians(300))*Pos),
            Y+(sin(radians(300))*Pos), NewR, L-1)
  #end
#end

union
{
  Daisy ( 0, 0, 5, 5 )
  rotate 90*x
}

camera { location -15*z look_at 0 }  

light_source { -1000*z color White shadowless }

Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.