POV-Ray : Newsgroups : povray.general : Newbie: Candy Cane stripes on a cone? : Re: Newbie: Candy Cane stripes on a cone? Server Time
16 Nov 2024 03:24:53 EST (-0500)
  Re: Newbie: Candy Cane stripes on a cone?  
From: ReVerSi
Date: 14 Oct 1998 17:20:49
Message: <3625075C.3FE0@t-online.de>
James Fitzgerald wrote:
> 
> How would I do candy cane stripes on a cone?
> I've looked through the docs, can't seem to find what I'm looking for.
> Any ideas on how I could do this?
> Ideally I would want the z distance of the stripe height to stay the
> same
> (so the stripes appear to get bigger down the cone simply because
> they're
> taking up more area in the other directions).
> 
> -JamesF.

Could be this, what you're looking for:

//PoV-Code~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cone {<0, 0, 2>, 3, <0, 0, -2>, 0
        pigment {spiral1 1 color_map{[0 Red]
                                     [0.5 Red]
                                     [0.5 White]
                                     [1 White]}
                frequency 2
                scale <1, 1, 4>
                translate <0, 0, -2>}
      rotate <90, 180, 0>
     }
//End of Pov-code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ReVerSi


Post a reply to this message

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