File: Ccurve.m4

package info (click to toggle)
circuit-macros 10.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 6,532 kB
  • sloc: makefile: 909; sh: 49
file content (14 lines) | stat: -rw-r--r-- 245 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.PS
# Ccurve.m4
gen_init
scale = 1.5
# Gosper C curve

`define' c_curve {if $3==0 then { continue by ($1,$2) } else {
    c_curve( ($1-$2)/2, ($1+$2)/2, $3-1)
    c_curve( ($1+$2)/2, ($2-$1)/2, $3-1)}}

line from 0,4 to 0,4
c_curve(0,4,10)

.PE