Can one fill the same svg shape with different colors? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Can one fill the same svg shape with different colors?

Like giving a circle blue yellow and red color at the same time.

20th Aug 2017, 6:34 AM
Rodgers
Rodgers - avatar
3 Answers
+ 8
Please post the code here for help
20th Aug 2017, 8:19 PM
Rodgers
Rodgers - avatar
+ 3
We can do it in svg to some extent using radial and linear gradient . Otherwise for much simpler way use JavaScript :- https://code.sololearn.com/WyIV3LfxbUAZ/?ref=app
1st Sep 2017, 10:57 AM
RZK 022
RZK 022 - avatar
+ 2
yes you can fill the same svg shape with different colors
20th Aug 2017, 8:17 PM
Ekiru Obadiah
Ekiru Obadiah - avatar