File: Preprocessor.es

package info (click to toggle)
structure-synth 1.5.0-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,268 kB
  • ctags: 1,966
  • sloc: cpp: 10,209; python: 164; makefile: 71; sh: 15
file content (33 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (6)
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
/*
	An example of using preprocessor defines.

      A preprocessor '#define' makes it easier
      to explore parameter settings that are used
      multiple times in the script.
*/

#define sizeStep 0.98
#define angle 6

set maxdepth 100
set background black

18 * { rx 10  x 0.2 sat 0.95  } R


rule R { R1  }

rule R1 {
  {  x 0.6 rz angle ry angle s sizeStep hue 1 a 0.99 } R1
  { s 1 1  0.1  } sbox
}

rule R2 {
  { x -0.6 rz angle ry angle s sizeStep hue 1  sat 1 a 0.99  } R2
  { s 1 1  0.1 } sbox
} 

rule sbox {
 { color black } grid
  {  b 0.8 hue 67 } box
}