File: ball.sed

package info (click to toggle)
mokomaze 0.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,580 kB
  • sloc: ansic: 3,600; sh: 1,241; cpp: 1,230; makefile: 163; sed: 57
file content (38 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (5)
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
34
35
36
37
38
# Smaller image to prevent aliasing
s/width="620"/width="128"/
s/height="620"/height="128"/

# Hide the putter
/inkscape:label="putter"/ {
	n
	s/display:inline/display:none/
}

# Show the ball shadow and scale it down to prevent aliasing
/inkscape:label="ballshadow"/ {
	s/$/ transform="scale(0.20645161290322581)"/
	n
	s/display:none/display:inline/
}

# Scale the ball down a bit to prevent aliasing
/inkscape:label="ball"/ {
	s/$/ transform="scale(0.20645161290322581)"/
}

# Change the red parts to white
/id="path11852"/ {
	n
	s/fill:#ff0000/fill:#ffffff/
}

# Change the black/grey parts to brown
/id="rect12958"/ {
	n
	n
	s/fill:#000000/fill:#953c00/
}
/id="path12908"/ {
	n
	s/fill:#000000/fill:#953c00/
}