lnvis

nanovg lightning network visualizer
git clone git://jb55.com/lnvis
Log | Files | Refs | README | LICENSE

commit 4be8e791a44dcbb0a835fe501351b23d1ca1644b
parent 17eb1e8e9953afffc9379f47b60a43138368cfa2
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 20 Aug 2018 20:53:50 -0700

slightly transparent channels for targeted nodes

Diffstat:
Rclightning-channels.json -> examples/clightning-channels.json | 0
Rclightning-nodes.json -> examples/clightning-nodes.json | 0
Mrender.c | 2+-
3 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/clightning-channels.json b/examples/clightning-channels.json diff --git a/clightning-nodes.json b/examples/clightning-nodes.json diff --git a/render.c b/render.c @@ -56,7 +56,7 @@ void draw_channel(NVGcontext *vg, struct ln *ln, struct channel *channel) c = n2t.nvg_color; if (channel->active && (channel->nodes[0] == ln->last_drag_target || channel->nodes[1] == ln->last_drag_target)) - c.a = 1.0; + c.a = 0.9; else { if (!channel->active || ln->drag_target) { saturate((union color*)&c, 0.01);