[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 194/255: notes on scaling image sizes
From: |
Eric Schulte |
Subject: |
[elpa] 194/255: notes on scaling image sizes |
Date: |
Sun, 16 Mar 2014 01:02:47 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 09e3216b771ee7afb2b64003bf972781657664c6
Author: Eric Schulte <address@hidden>
Date: Sun May 19 18:58:23 2013 -0600
notes on scaling image sizes
---
NOTES | 7 +++++++
go-board-faces.el | 6 ++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/NOTES b/NOTES
index 0fab574..d62bdbb 100644
--- a/NOTES
+++ b/NOTES
@@ -1,5 +1,12 @@
#+Options: ^:nil -*- mode:org -*-
+* TODO scale image sizes
+See the TODO and note in file:go-board-faces.el.
+
+We'll need to have =go-board-image= return a function rather than a
+list, and then somehow hook in with the =face-remap-add-relative=
+function.
+
* ability to call back-end functions through the board
e.g., it would be nice to be able to call gnugo commands and display
the output. This should be extensible however...
diff --git a/go-board-faces.el b/go-board-faces.el
index 4a4527f..e507f5f 100644
--- a/go-board-faces.el
+++ b/go-board-faces.el
@@ -74,6 +74,8 @@
'((t (:background "#cd9c67" :foreground "white")))
"white piece on white territory")
+;; Maybe use `face-remap-add-relative' to change image sizes.
+
;;; Image utility functions
(defun go-board-svg-trans (list)
@@ -97,6 +99,10 @@
(width . 25) (height . 25) (version . 1.0))
,@body))))
+;; TODO: To allow images to scale with text, this should return a
+;; function instead of a list. This function should take a base
+;; size (e.g., 12.5), and should return the image list
+;; appropriate for that size.
(defmacro go-board-image (&rest body)
``(image :type svg :ascent center :data
,(go-board-wrap
- [elpa] 183/255: explicit connection method for back-end objects, (continued)
- [elpa] 183/255: explicit connection method for back-end objects, Eric Schulte, 2014/03/15
- [elpa] 179/255: track and display prisoners, Eric Schulte, 2014/03/15
- [elpa] 184/255: safer and automatic quitting, Eric Schulte, 2014/03/15
- [elpa] 186/255: better interactive debugging, Eric Schulte, 2014/03/15
- [elpa] 191/255: don't throw error when backend passes, Eric Schulte, 2014/03/15
- [elpa] 185/255: remove dependencies on org-mode functions, Eric Schulte, 2014/03/15
- [elpa] 176/255: task managment, Eric Schulte, 2014/03/15
- [elpa] 178/255: process igs "tell" messages, Eric Schulte, 2014/03/15
- [elpa] 181/255: NOTES #+option, Eric Schulte, 2014/03/15
- [elpa] 193/255: calculate the final score, Eric Schulte, 2014/03/15
- [elpa] 194/255: notes on scaling image sizes,
Eric Schulte <=
- [elpa] 198/255: don't mutate hidden state, Eric Schulte, 2014/03/15
- [elpa] 196/255: mark an overlay with a black or white cross, Eric Schulte, 2014/03/15
- [elpa] 187/255: don't commit if process already quit, Eric Schulte, 2014/03/15
- [elpa] 188/255: adding README, Eric Schulte, 2014/03/15
- [elpa] 199/255: marking captured territory when game ends, Eric Schulte, 2014/03/15
- [elpa] 197/255: use new mark machinery to apply labels, Eric Schulte, 2014/03/15
- [elpa] 195/255: query backend for territory, Eric Schulte, 2014/03/15
- [elpa] 201/255: print score after marking territory, Eric Schulte, 2014/03/15
- [elpa] 189/255: replace flet with cl-flet, Eric Schulte, 2014/03/15
- [elpa] 190/255: set level (mainly for playing GNUGO), Eric Schulte, 2014/03/15