[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 167/255: cleanup images in board faces
From: |
Eric Schulte |
Subject: |
[elpa] 167/255: cleanup images in board faces |
Date: |
Sun, 16 Mar 2014 01:02:41 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit b69e1a0851593cb8ee391b31fbaf4cf37f8e4dc5
Author: Eric Schulte <address@hidden>
Date: Tue Jun 5 14:41:17 2012 -0600
cleanup images in board faces
---
go-board-faces.el | 43 ++++++++++++++++++++++---------------------
1 files changed, 22 insertions(+), 21 deletions(-)
diff --git a/go-board-faces.el b/go-board-faces.el
index 99efc36..308aa95 100644
--- a/go-board-faces.el
+++ b/go-board-faces.el
@@ -75,7 +75,7 @@
"white piece on white territory")
-;;; Images
+;;; Image utility functions
(defun go-board-svg-trans (list)
(if (and (listp list) (listp (car list)))
(concat (format "<%s%s" (caar list) (if (cdar list) " " ""))
@@ -104,6 +104,7 @@
,@body)))
(defmacro go-board-image-sides (name &rest base)
+ (declare (indent 1))
`(progn
,@(mapcar
(lambda (p)
@@ -122,31 +123,31 @@
(bottom-right . "M0,12.5H13M12.5,0V13")
(nil . "M0,12.5H25M12.5,0V25")))))
+
+;;; SVG Images
+(go-board-image-sides background)
+
+(go-board-image-sides black
+ ((defs)
+ ((radialGradient (id . "$rg") (cx . ".3") (cy . ".3") (r . ".8"))
+ ((stop (offset . 0) (stop-color . "#777")))
+ ((stop (offset . 0.3) (stop-color . "#222")))
+ ((stop (offset . 1) (stop-color . "#000")))))
+ ((circle (cx . 12.5) (cy . 12.5) (r . 6.125) (fill . "url(#$rg)"))))
+
+(go-board-image-sides white
+ ((defs)
+ ((radialGradient (id . "$rg") (cx . ".47") (cy . ".49") (r . ".48"))
+ ((stop (offset . 0.7) (stop-color . "#FFF")))
+ ((stop (offset . 0.9) (stop-color . "#DDD")))
+ ((stop (offset . 1) (stop-color . "#777")))))
+ ((circle (cx . 12.5) (cy . 12.5) (r . 6.125) (fill . "url(#$rg)"))))
+
(defvar go-board-image-hoshi
(go-board-image
((path (stroke . "#000") (stroke-width . 1) (d . "M0,12.5H25M12.5,0V25")))
((circle (cx . 12.5) (cy . 12.5) (r . 2.5)))))
-(defvar go-board-image-black-svg
- '(((defs)
- ((radialGradient (id . "$rg") (cx . ".3") (cy . ".3") (r . ".8"))
- ((stop (offset . 0) (stop-color . "#777")))
- ((stop (offset . 0.3) (stop-color . "#222")))
- ((stop (offset . 1) (stop-color . "#000")))))
- ((circle (cx . 12.5) (cy . 12.5) (r . 6.125) (fill . "url(#$rg)")))))
-
-(defvar go-board-image-white-svg
- '(((defs)
- ((radialGradient (id . "$rg") (cx . ".47") (cy . ".49") (r . ".48"))
- ((stop (offset . 0.7) (stop-color . "#FFF")))
- ((stop (offset . 0.9) (stop-color . "#DDD")))
- ((stop (offset . 1) (stop-color . "#777")))))
- ((circle (cx . 12.5) (cy . 12.5) (r . 6.125) (fill . "url(#$rg)")))))
-
-(go-board-image-sides background)
-(eval `(go-board-image-sides black ,@go-board-image-black-svg))
-(eval `(go-board-image-sides white ,@go-board-image-white-svg))
-
(defmacro go-board-image-label (label)
`(go-board-image
((text (x . 8.75) (y . 16.25) (r . 12.25) (style . "font-size:12.5;"))
- [elpa] 149/255: push all buffer-local variables into an igs object, (continued)
- [elpa] 149/255: push all buffer-local variables into an igs object, Eric Schulte, 2014/03/15
- [elpa] 162/255: painting a nice svg board, but more to do, Eric Schulte, 2014/03/15
- [elpa] 159/255: translated all svg stone images into elisp, Eric Schulte, 2014/03/15
- [elpa] 164/255: prompt before quitting, Eric Schulte, 2014/03/15
- [elpa] 153/255: safety measure when observing igs games, Eric Schulte, 2014/03/15
- [elpa] 163/255: sorted out different types of backgrounds, Eric Schulte, 2014/03/15
- [elpa] 168/255: adding option to play a sound during moves, Eric Schulte, 2014/03/15
- [elpa] 155/255: less permissive igs move regular expression, Eric Schulte, 2014/03/15
- [elpa] 166/255: board images working with backgrounds, Eric Schulte, 2014/03/15
- [elpa] 173/255: start gnugo process when object is created, Eric Schulte, 2014/03/15
- [elpa] 167/255: cleanup images in board faces,
Eric Schulte <=
- [elpa] 170/255: fix spacing of labels when using image for display, Eric Schulte, 2014/03/15
- [elpa] 174/255: quit the main back-end as well, Eric Schulte, 2014/03/15
- [elpa] 160/255: removing stones/ directory, Eric Schulte, 2014/03/15
- [elpa] 175/255: support for playing different types of games, Eric Schulte, 2014/03/15
- [elpa] 157/255: images of stones, Eric Schulte, 2014/03/15
- [elpa] 177/255: future tasks, Eric Schulte, 2014/03/15
- [elpa] 182/255: reverse order of sizes, Eric Schulte, 2014/03/15
- [elpa] 172/255: re-organized how files are loaded, Eric Schulte, 2014/03/15
- [elpa] 156/255: chunking responses from IGS server into full lines, Eric Schulte, 2014/03/15
- [elpa] 183/255: explicit connection method for back-end objects, Eric Schulte, 2014/03/15