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

hsl & hsla color formats not supported #187

Open
petrkotek opened this issue Jul 5, 2024 · 0 comments · May be fixed by #188
Open

hsl & hsla color formats not supported #187

petrkotek opened this issue Jul 5, 2024 · 0 comments · May be fixed by #188

Comments

@petrkotek
Copy link

petrkotek commented Jul 5, 2024

Would be nice to add a support for HSL and HSLA:

hsl(hue, saturation, lightness)
hsla(hue, saturation, lightness, alpha)

Examples:

hsl(120, 50%, 50%)
hsla(120, 50%, 50%, 0.5)

This would be implemented in parseColor method:

function parseColor(raw) {

(Note: I should be able to implement this in the next few days.)

petrkotek added a commit to petrkotek/SVG-to-PDFKit that referenced this issue Jul 6, 2024
petrkotek added a commit to petrkotek/SVG-to-PDFKit that referenced this issue Jul 6, 2024
petrkotek added a commit to petrkotek/SVG-to-PDFKit that referenced this issue Jul 8, 2024
petrkotek added a commit to petrkotek/SVG-to-PDFKit that referenced this issue Jul 8, 2024
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 a pull request may close this issue.

1 participant