File: highlight.pov.fold

package info (click to toggle)
kf6-syntax-highlighting 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 47,568 kB
  • sloc: xml: 197,750; cpp: 12,850; python: 3,023; sh: 955; perl: 546; ruby: 488; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; erlang: 54; sql: 51; java: 47; objc: 37; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (76 lines) | stat: -rw-r--r-- 2,243 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<beginfold id='1'>//BEGIN TEST</beginfold id='1'>
// test scene for POV-Ray syntax highlighting

<beginfold id='2'>/*</beginfold id='2'> test comment <endfold id='2'>*/</endfold id='2'>

<beginfold id='2'>/*</beginfold id='2'> nested /* comments <endfold id='2'>*/</endfold id='2'> do not work */

#version 3.5;
<endfold id='1'>//END</endfold id='1'>
global_settings <beginfold id='3'>{</beginfold id='3'> assumed_gamma 1.0 <endfold id='3'>}</endfold id='3'>

// ----------------------------------------

camera <beginfold id='3'>{</beginfold id='3'>
  location  <5.0, -12.0, 2.0>
  up z sky z
  look_at   <0.0, 0.0, 0.5> 
  angle 40
<endfold id='3'>}</endfold id='3'>

sky_sphere <beginfold id='3'>{</beginfold id='3'>
  pigment <beginfold id='3'>{</beginfold id='3'>
    gradient z
    color_map <beginfold id='3'>{</beginfold id='3'>
      [0.0 rgb <0.6,0.7,1.0>]
      [0.2 rgb <0.2,0.3,0.9>]
    <endfold id='3'>}</endfold id='3'>
  <endfold id='3'>}</endfold id='3'>
<endfold id='3'>}</endfold id='3'>

light_source <beginfold id='3'>{</beginfold id='3'>
  <3, 1, 2>*1000
  color rgb <2.2, 1.8, 1.5>
<endfold id='3'>}</endfold id='3'>   

// ----------------------------------------

#declare TEST=0;

#ifdef (TEST)
  plane <beginfold id='3'>{</beginfold id='3'>
    z, 0
    texture <beginfold id='3'>{</beginfold id='3'>
      pigment <beginfold id='3'>{</beginfold id='3'>
        checker
        color rgb 1, color rgb 0
      <endfold id='3'>}</endfold id='3'>
    <endfold id='3'>}</endfold id='3'>
  <endfold id='3'>}</endfold id='3'>
#end

#macro Sphere(Pos, Radius)
  sphere <beginfold id='3'>{</beginfold id='3'>
    <Pos.x, Pos.y, Radius*1.3>, Radius
    texture <beginfold id='3'>{</beginfold id='3'>
      pigment <beginfold id='3'>{</beginfold id='3'> color rgb 1 <endfold id='3'>}</endfold id='3'>
      finish<beginfold id='3'>{</beginfold id='3'>
        diffuse 0.3
        ambient 0.0
        specular 0.6
        reflection 0.8
      <endfold id='3'>}</endfold id='3'>
    <endfold id='3'>}</endfold id='3'>
  <endfold id='3'>}</endfold id='3'>
#end

#local Cnt=0;
#local Seed=seed(0);

#while (Cnt<10000)
  Sphere(
    -100+<rand(Seed), rand(Seed)>*200, 
    0.3+pow(rand(Seed),2)*0.7
  )  
  #local Cnt=Cnt+1;
#end