File: adjparamtest1.cfdg

package info (click to toggle)
contextfree 3.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,448 kB
  • sloc: cpp: 37,995; lex: 414; makefile: 123; sh: 43; python: 34
file content (16 lines) | stat: -rw-r--r-- 316 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
startshape test
CF::MinimumSize = 15
shape foo(number sz)
{
  SQUARE [r 0..90 s sz]
}

shape curve(adjustment change, shape thingie)
{
  thingie[]  // invoke thingie with parameters already bound
  curve(=) [transform change]
}

shape test {
  curve([[y 0.5 s 0.97 r 3 y 0.5]], foo(0.5)) [] // bind 0.5 to sz here
}