| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
In the case where a (r, g, b) / (r, g, b, a) tuple is passed in this PR makes _to_rgba_no_colorcycle ~2x faster (by avoiding converting to ndarray and back to tuple). String inputs are handled earlier and thus unchanged; array inputs are essentially as fast.
| Back | FazBrowse Home | New Git URL |
In the case where a (r, g, b) / (r, g, b, a) tuple is passed in this
PR makes _to_rgba_no_colorcycle ~2x faster (by avoiding converting to
ndarray and back to tuple). String inputs are handled earlier and thus
unchanged; array inputs are essentially as fast.
Lifted out of #15833 as it's also useful in itself.
PR Summary
PR Checklist