ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Gtk2-GoBoard/data/draw-marks
(Generate patch)

Comparing cvsroot/Gtk2-GoBoard/data/draw-marks (file contents):
Revision 1.1 by root, Wed Jun 25 04:41:10 2008 UTC vs.
Revision 1.2 by root, Wed Jun 25 04:47:55 2008 UTC

1#!/bin/sh 1#!/bin/sh
2 2
3WIDTH=11 3WIDTH=15
4BLUR=4,4 4BLUR=4.5,8
5 5
6draw() { 6draw() {
7 white=$1 7 white=$1
8 w=$2 8 w=$2
9 9
13 -blur $BLUR \ 13 -blur $BLUR \
14 circle-$w.png 14 circle-$w.png
15 15
16 convert -size 152x152 xc:$white -matte -fill none -draw "matte 0,0 reset" -channel rgba \ 16 convert -size 152x152 xc:$white -matte -fill none -draw "matte 0,0 reset" -channel rgba \
17 +fill -stroke $white \ 17 +fill -stroke $white \
18 -draw "stroke-antialias 1 stroke-width $WIDTH roundrectangle 35.5,35.5 116.5,116.5 8,8" \ 18 -draw "stroke-antialias 1 stroke-width $WIDTH roundrectangle 37.5,37.5 114.5,114.5 8,8" \
19 -blur $BLUR \ 19 -blur $BLUR \
20 square-$w.png 20 square-$w.png
21 21
22 convert -size 152x152 xc:$white -matte -fill none -draw "matte 0,0 reset" -channel rgba \ 22 convert -size 152x152 xc:$white -matte -fill none -draw "matte 0,0 reset" -channel rgba \
23 +fill -stroke $white \ 23 +fill -stroke $white \
24 -draw "stroke-antialias 1 stroke-width $WIDTH line 35,35 117,117 line 117,35 35,117" \ 24 -draw "stroke-antialias 1 stroke-width $WIDTH line 40,40 112,112 line 112,40 40,112" \
25 -blur $BLUR \ 25 -blur $BLUR \
26 cross-$w.png 26 cross-$w.png
27 27
28 R=46 28 R=46
29 A=$(perl -e "print 76.5-$R") 29 A=$(perl -e "print 76.5-$R")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines