Warning, /frameworks/syntax-highlighting/autotests/folding/highlight.pov.fold is written in an unsupported language. File is not indexed.

0001 <beginfold id='1'>//BEGIN TEST</beginfold id='1'>
0002 // test scene for POV-Ray syntax highlighting
0003 
0004 <beginfold id='2'>/*</beginfold id='2'> test comment <endfold id='2'>*/</endfold id='2'>
0005 
0006 <beginfold id='2'>/*</beginfold id='2'> nested /* comments <endfold id='2'>*/</endfold id='2'> do not work */
0007 
0008 #version 3.5;
0009 <endfold id='1'>//END</endfold id='1'>
0010 global_settings <beginfold id='3'>{</beginfold id='3'> assumed_gamma 1.0 <endfold id='3'>}</endfold id='3'>
0011 
0012 // ----------------------------------------
0013 
0014 camera <beginfold id='3'>{</beginfold id='3'>
0015   location  <5.0, -12.0, 2.0>
0016   up z sky z
0017   look_at   <0.0, 0.0, 0.5> 
0018   angle 40
0019 <endfold id='3'>}</endfold id='3'>
0020 
0021 sky_sphere <beginfold id='3'>{</beginfold id='3'>
0022   pigment <beginfold id='3'>{</beginfold id='3'>
0023     gradient z
0024     color_map <beginfold id='3'>{</beginfold id='3'>
0025       [0.0 rgb <0.6,0.7,1.0>]
0026       [0.2 rgb <0.2,0.3,0.9>]
0027     <endfold id='3'>}</endfold id='3'>
0028   <endfold id='3'>}</endfold id='3'>
0029 <endfold id='3'>}</endfold id='3'>
0030 
0031 light_source <beginfold id='3'>{</beginfold id='3'>
0032   <3, 1, 2>*1000
0033   color rgb <2.2, 1.8, 1.5>
0034 <endfold id='3'>}</endfold id='3'>   
0035 
0036 // ----------------------------------------
0037 
0038 #declare TEST=0;
0039 
0040 #ifdef (TEST)
0041   plane <beginfold id='3'>{</beginfold id='3'>
0042     z, 0
0043     texture <beginfold id='3'>{</beginfold id='3'>
0044       pigment <beginfold id='3'>{</beginfold id='3'>
0045         checker
0046         color rgb 1, color rgb 0
0047       <endfold id='3'>}</endfold id='3'>
0048     <endfold id='3'>}</endfold id='3'>
0049   <endfold id='3'>}</endfold id='3'>
0050 #end
0051 
0052 #macro Sphere(Pos, Radius)
0053   sphere <beginfold id='3'>{</beginfold id='3'>
0054     <Pos.x, Pos.y, Radius*1.3>, Radius
0055     texture <beginfold id='3'>{</beginfold id='3'>
0056       pigment <beginfold id='3'>{</beginfold id='3'> color rgb 1 <endfold id='3'>}</endfold id='3'>
0057       finish<beginfold id='3'>{</beginfold id='3'>
0058         diffuse 0.3
0059         ambient 0.0
0060         specular 0.6
0061         reflection 0.8
0062       <endfold id='3'>}</endfold id='3'>
0063     <endfold id='3'>}</endfold id='3'>
0064   <endfold id='3'>}</endfold id='3'>
0065 #end
0066 
0067 #local Cnt=0;
0068 #local Seed=seed(0);
0069 
0070 #while (Cnt<10000)
0071   Sphere(
0072     -100+<rand(Seed), rand(Seed)>*200, 
0073     0.3+pow(rand(Seed),2)*0.7
0074   )  
0075   #local Cnt=Cnt+1;
0076 #end