File: clock.m4

package info (click to toggle)
texlive-base 2022.20230122-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 943,248 kB
  • sloc: perl: 43,776; sh: 5,749; makefile: 3,870; javascript: 3,034; ruby: 2,266; tcl: 2,130; xml: 1,874; python: 1,025; awk: 606; cpp: 549; lisp: 447; ansic: 103; sed: 8
file content (20 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PS
# clock.m4
gen_init

  linethick = 1.5
  arrowwid = 5 pt__

  rgbfill(255/255,250/255,205/255,
    Clock: circle rad 0.75 at (0,0) )
   
  command "\newcounter{hour}"
  for time=1 to 12 do {
    sprintf("\setcounter{hour}{%g}\Roman{hour}",time) \
      at Rect_(Clock.rad*0.85,90-time*30)
    }
  line <-> from Rect_(Clock.rad*0.95,90-8.5*30) to Clock \
    then to Rect_(Clock.rad*0.7,90-3.5*30)
  line thick 1 outline "red" from Clock to Rect_(Clock.rad*0.95,90-0.75*30)

.PE