File: selecttest.cfdg

package info (click to toggle)
contextfree 3.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,432 kB
  • sloc: cpp: 34,857; lex: 416; makefile: 124; sh: 42; python: 41
file content (18 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

startshape test

shape curve(number shrink, adjustment turn, shape base)
{
  base []
  curve(=) [[y 0.5 trans turn s shrink y 0.5]]
}

shape test {
  loop i=(3, -4, -1) [x 1] {
    curve(select(i + 3, 99%, 98.5%, 98.25%, 98%, 98.25%, 98.5%, 99%), 
          select(randint(3), [r -i], [], [r i]),
          select(mod(i + 8, 2), CIRCLE, TRIANGLE)) []
  }
}