chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c82a205
)
outline
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 15:18:15 +0000
(16:18 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 15:18:15 +0000
(16:18 +0100)
src/gamestate.rs
patch
|
blob
|
history
diff --git
a/src/gamestate.rs
b/src/gamestate.rs
index 70af0d0d15d7598337b30855a21905a18b6c22c8..69f5e631d3ed713d6820d98ac90e588a0e03ff28 100644
(file)
--- a/
src/gamestate.rs
+++ b/
src/gamestate.rs
@@
-148,6
+148,11
@@
impl PieceState {
write!(defs,
r##"<path id="select{}" stroke="black" fill="none" d="{}"/>"##,
pri.id, pr.p.surround_path(&pri)?)?;
+ write!(defs,
+ r##"<path id="halo{}" stroke="none" fill="yellow" d="{} {}"/>"##,
+ pri.id,
+ pr.p.surround_path(&pri)?,
+ pr.p.outline_path(&pri)?)?;
pr.p.svg_x_defs(&mut defs, &pri)?;
defs
}