Closed hchargois closed 16 hours ago
@behackl Thanks, I've responded to your comments in their own threads, let me know if I need to make any more changes, otherwise I'll probably need to squash and rebase?
@behackl Thanks, I've responded to your comments in their own threads, let me know if I need to make any more changes, otherwise I'll probably need to squash and rebase?
We'll take it from here, I'll run tests one more time locally and then merge it.
Thanks again for your contribution! 🚀
Overview
This adds 3 new methods on
ManimColor
s:darker()
,lighter()
andcontrasting()
, which return new colors.Motivation
This is useful to derive related colors from a base color, for example to write a function that builds VMobjects with some fill color, a slightly darker border, and an inset text in a contrasting color, all that from a single color parameter instead of 3:
Here's a slightly more exhaustive example:
Generated by this Scene: