POV-Ray : Newsgroups : povray.binaries.images : voronoi abstact Server Time
14 Nov 2024 00:17:29 EST (-0500)
  voronoi abstact (Message 1 to 3 of 3)  
From: Tim Attwood
Subject: voronoi abstact
Date: 15 Feb 2010 06:00:17
Message: <4b792941@news.povray.org>


Post a reply to this message


Attachments:
Download 'voronoi_cones.jpg' (190 KB)

Preview of image 'voronoi_cones.jpg'
voronoi_cones.jpg


 

From: Agustin Britait Molina
Subject: Re: voronoi abstact
Date: 19 Feb 2010 08:15:00
Message: <web.4b7e8e68d8206e77584272290@news.povray.org>
Is a POV picture?


Post a reply to this message

From: Tim Attwood
Subject: Re: voronoi abstact
Date: 21 Feb 2010 19:31:05
Message: <4b81d049$1@news.povray.org>
> Is a POV picture?

Yeah, it's POV...

#include "colors.inc"
#include "arrays.inc"
#include "rand.inc"

camera {
  orthographic
  location <0,0,-100>
  look_at  <0,0,0>
  right     x*image_width/image_height
  up 1*y
}
background {Black}
#default {finish{ambient 1 diffuse 0}}

// a list of colors
#declare color_list = array[100] {Red, Green, Blue, Yellow, Cyan, Magenta,
   Aquamarine, BlueViolet, Brown, CadetBlue, Coral, CornflowerBlue,
   DarkGreen, DarkOliveGreen, DarkOrchid, DarkSlateBlue, DarkSlateGray,
   DarkSlateGrey, DarkTurquoise, Firebrick, ForestGreen, Gold, Goldenrod,
   GreenYellow, IndianRed, Khaki, LightBlue, LightSteelBlue, LimeGreen,
   Maroon, MediumAquamarine, MediumBlue, MediumForestGreen, MediumGoldenrod,
   MediumOrchid, MediumSeaGreen, MediumSlateBlue, MediumSpringGreen,
   MediumTurquoise, MediumVioletRed, MidnightBlue, Navy, NavyBlue, Orange,
   OrangeRed, Orchid, PaleGreen, Pink, Plum, Salmon, SeaGreen, Sienna,
   SkyBlue, SlateBlue, SpringGreen, SteelBlue, Tan, Thistle, Turquoise,
   Violet, VioletRed, Wheat, YellowGreen, SummerSky, RichBlue, Brass, 
Copper,
   Bronze, Bronze2, Silver, BrightGold, OldGold, Feldspar, Quartz, Mica,
   NeonPink, DarkPurple, NeonBlue, CoolCopper, MandarinOrange, LightWood,
   MediumWood, DarkWood, SpicyPink, SemiSweetChoc, BakersChoc, Flesh, 
NewTan,
   NewMidnightBlue, VeryDarkBrown, DarkBrown, DarkTan, GreenCopper,
   DkGreenCopper, DustyRose, HuntersGreen, Scarlet, Med_Purple, 
Light_Purple,
   Very_Light_Purple };

#declare peak_color = array[4] {White, SkyBlue, Yellow, Green}
#declare vcone = cone {<0,0,0>,0,<0,0,1>,1};
#declare s = seed(1);

#local c = 0;
#while (c<100)
   object {vcone
      pigment {
         gradient z
         color_map {
            //[0 Green]
            [0 Rand_Array_Item(peak_color, s)]
            [0.05 Rand_Array_Item(color_list, s)]
            [0.5 Rand_Array_Item(color_list, s)]
            [0.9 Rand_Array_Item(color_list, s)]
            [1 Black]
         }
      }
      translate <RRand(-0.5,0.5,s),RRand(-0.5,0.5,s),0>
   }
   #local c=c+1;
#end
//eof


Post a reply to this message

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