-
Notifications
You must be signed in to change notification settings - Fork 93
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
linearGradient support #53
Comments
This is not possible yet, as |
Just wanted to add that this specific feature prevents me from using this library in my application. |
I would like this feature too |
For what it's worth, a barebones The rasterizer implementation still needs to happen, which is likely a long way off because PHP GD has no gradient support whatsoever and it needs to be manually written. |
upvote this! Or would it be possible to use png-file to fill the area ? |
I would like to generate à Rect object SVG and filling this with a linearGradient color like this
https://www.w3schools.com/graphics/svg_grad_linear.asp
Generate this kind of code
<defs> <linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%"> <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" /> <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" /> </linearGradient> </defs> <ellipse cx="200" cy="70" rx="85" ry="55" fill="url(#grad1)" />
I don't understand how can do this with your library.
Can you help me to generate this please ?
The text was updated successfully, but these errors were encountered: