Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network graph <canvas> styling #73

Closed
silverwind opened this issue Nov 30, 2013 · 6 comments
Closed

Network graph <canvas> styling #73

silverwind opened this issue Nov 30, 2013 · 6 comments

Comments

@silverwind
Copy link
Member

Not sure if it can be done, but I'll look into styling this canvas here later:

https://github.com/Mottie/Github-Dark/network

@silverwind
Copy link
Member Author

Looks like my SVG invert filter actually works on a <canvas>, but just applying that plain invert filter arguably makes the network graph worse than before. I'll have to dig deeper into SVG filters and am pretty certain that an acceptable result can be reached. :)

@Mottie
Copy link
Member

Mottie commented Dec 2, 2013

You rock! 🚀

@ddavison
Copy link
Member

ddavison commented Dec 2, 2013

xD

@silverwind
Copy link
Member Author

And you Roll! 🎢

@silverwind
Copy link
Member Author

Some progess here, I made a feColorMatrix generator (might not work on Chrome). Now we just need to find satisfying slider values.

@silverwind
Copy link
Member Author

Meh, It seems like feColorMatrix isn't exactly suited for this and something like feComponentTransfer might be more appropriate to just darken the brighter parts of that canvas.

Either way, these filters would mess with the user avatars and font antialiasing, so it's probably not worth trying to get them right.

I'll probably just go with slightly reduced opacity to darken it just a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants