diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-02-20 18:40:23 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-02-20 18:40:23 (GMT) |
commit | a5e7b3bbf80513e9ea9b9497d60e851cde0f44c8 (patch) | |
tree | 4c92aed109ea139c84cc8a4fe587fceb805ccb39 /tasprite_factory.py | |
parent | e3973fddefad1e714cc98becea2bfe1cec32da44 (diff) |
cleaning up artwork
Diffstat (limited to 'tasprite_factory.py')
-rwxr-xr-x | tasprite_factory.py | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/tasprite_factory.py b/tasprite_factory.py index 1bd3e8e..f76f40d 100755 --- a/tasprite_factory.py +++ b/tasprite_factory.py @@ -595,12 +595,30 @@ class SVG: "\" height=\"", h,"\" x=\"", x, "\" y=\"", y, "\" />\n") def _turtle_body(self): - return "%s%s%s%s%s" % ("<path style=\"", self._fill, ";stroke:", - self._stroke, "\" d=\"M 20,42 C 21,41 23,40 24,40 C 24,39 24,40 26,41 C 28,43 31,43 34,41 C 35,40 35,39 36,40 C 36,40 38,41 39,42 C 41,42 45,43 46,43 C 47,43 46,41 43,39 L 39,36 L 42,34 C 44,30 45,28 43,25 L 41,22 L 46,18 C 48,16 47.5,13.5 47,13 C 46.5,12.5 46,13 45,13 C 44,13 43.5,14 42.5,15 C 39.5,17 40,18 37,17 C 32,16 31.5,15 34.5,12 C 36.5,10 36,7 34,6 C 32,3 28,4 26,6 C 24,8 23,10 25,12 C 28,15 27,16 22,17 C 18,18 19,17 17,15 C 16,14 16,13 15,13 C 14,13 13,13 13,13 C 12,13 11,16 14,18 L 19,22 L 17,25 C 15,28 16,30 18,34 L 20,36 L 16,39 C 13,41 12,43 13,43 C 14,43 18,42 20,42 z M 30,18 C 32,18 36,19 38,20 C 40,22 39.5,25 39.5,28 C 39.5,30 40,32.5 38.5,35 C 37,36.5 36.5,37.5 35,38 C 33.5,38.5 31,39 30,39 C 28,39 26,39 25,38 C 23,37 22.5,37 21.5,35 C 20.5,33 20.5,30 20.5,28 C 20.5,25 20,22 22,20 C 24,19 27,18 30,18 z\" />\n") + return "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s" % ( + "<path style=\"", self._fill, ";stroke:", + self._stroke, "\" d=\"M 20,42 C 21,41 23,40 24,40 ", + "C 24,39 24,40 26,41 C 28,43 31,43 34,41 C 35,40 35,39 36,40 ", + "C 36,40 38,41 39,42 C 41,42 45,43 46,43 C 47,43 46,41 43,39 ", + "L 39,36 L 42,34 C 44,30 45,28 43,25 L 41,22 L 46,18 ", + "C 48,16 47.5,13.5 47,13 C 46.5,12.5 46,13 45,13 ", + "C 44,13 43.5,14 42.5,15 C 39.5,17 40,18 37,17 ", + "C 32,16 31.5,15 34.5,12 C 36.5,10 36,7 34,6 C 32,3 28,4 26,6 ", + "C 24,8 23,10 25,12 C 28,15 27,16 22,17 C 18,18 19,17 17,15 ", + "C 16,14 16,13 15,13 C 14,13 13,13 13,13 C 12,13 11,16 14,18 ", + "L 19,22 L 17,25 C 15,28 16,30 18,34 L 20,36 L 16,39 ", + "C 13,41 12,43 13,43 C 14,43 18,42 20,42 z M 30,18 ", + "C 32,18 36,19 38,20 C 40,22 39.5,25 39.5,28 ", + "C 39.5,30 40,32.5 38.5,35 C 37,36.5 36.5,37.5 35,38 ", + "C 33.5,38.5 31,39 30,39 C 28,39 26,39 25,38 ", + "C 23,37 22.5,37 21.5,35 C 20.5,33 20.5,30 20.5,28 ", + "C 20.5,25 20,22 22,20 C 24,19 27,18 30,18 z\" />\n") def _turtle_shell(self): - return "%s%s%s%s%s" % ("<path style=\"", self._fill, ";stroke:", - self._stroke, "\" d=\"M 33,10 C 33,11 31.5,12 30,12 C 28,12 27,11 27,10 C 27,9 28,8 30,8 C 31.5,8 33,9 33,10 z\" />\n") + return "%s%s%s%s%s%s%s" % ("<path style=\"", self._fill, ";stroke:", + self._stroke, "\" d=\"M 33,10 C 33,11 31.5,12 30,12 ", + "C 28,12 27,11 27,10 C 27,9 28,8 30,8 ", + "C 31.5,8 33,9 33,10 z\" />\n") def _check_min_max(self): if self._x < self._min_x: |