-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Tex command: colour inversion #373
Comments
I can already say that PIL is not going to be nice at all. Aliasing will be an issue, but so will be PIL's tremendous slowness (blocking in the breaks-the-loop sense) |
rtex supports pdf output. maybe there could be some pdf -> svg -> png conversion in there? sounds somewhat cursed tho |
Is styling just not supported by the renderer? |
it can be done in the latex, but that can mess up some of the styling people input. would be interesting to see how mathbot does it. @thxo do you know of any way to invert the document in latex? |
The easiest way is probably just manually setting the page and text colours to something dark and something light, respectively: I did some experimenting and it looks like tikz follows the text colour as well. It is not perfect in all situations (e.g., if we get a manually selected dark blue, we can't invert that color when the page turns dark to make it light), but it works for most cases. |
well I guess that's the same issue if someone manually selects white for something on a white background. I suggest adding a second template with dark discord background (#2C2F33) and white default (#FFFFFF) foreground to qrm-resources (e.g. (maybe a flag on the command too?) |
Might be starting to feature creep a bit We could also aim for the background to match the one of embeds, but there's also that desktop/android/ios versions of discord don't agree on background colour |
#371 (comment)
The text was updated successfully, but these errors were encountered: