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

pico_svg: Simplify color parsing. #753

Merged

Conversation

waywardmonkeys
Copy link
Contributor

The color parsing in color is more complete than the older code in peniko, so this can be simplified now.

Also, switch from peniko::Color to AlphaColor<Srgb> to continue down the path of using peniko::Color less.

Finally, add a couple of tests to show the color parsing working with a couple of the supported syntaxes.

The color parsing in `color` is more complete than the older
code in `peniko`, so this can be simplified now.

Also, switch from `peniko::Color` to `AlphaColor<Srgb>` to
continue down the path of using `peniko::Color` less.

Finally, add a couple of tests to show the color parsing
working with a couple of the supported syntaxes.
examples/scenes/src/pico_svg.rs Show resolved Hide resolved
@waywardmonkeys waywardmonkeys added this pull request to the merge queue Nov 29, 2024
Merged via the queue into linebender:main with commit c52751b Nov 29, 2024
17 checks passed
@waywardmonkeys waywardmonkeys deleted the pico_svg-color-parsing branch November 29, 2024 10:26
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

Successfully merging this pull request may close these issues.

2 participants