Add white glow to libation_glass.svg (#701)

This commit is contained in:
Mbucari 2023-08-05 09:31:46 -06:00 committed by Mbucari
parent 768afd8ecd
commit ee00417c6f
2 changed files with 82 additions and 48 deletions

View File

@ -1,28 +1,45 @@
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" enable-background="new 0 0 512 512"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 524 524" enable-background="new 0 0 524 524">
<path id="glass" d=
"M139,2 <defs>
A 192,200 0 0 0 103,84 <filter id="white-glow" x="-400%" y="-400%" width="800%" height="800%">
A 222,334 41 0 0 241,320 <feFlood result="flood" flood-color="#ffffff" flood-opacity="1"></feFlood>
V478 <feComposite in="flood" result="mask" in2="SourceGraphic" operator="in"></feComposite>
H160 <feMorphology in="mask" result="dilated" operator="dilate" radius="3"></feMorphology>
A 16,16 0 0 0 160,510 <feGaussianBlur in="dilated" result="blurred" stdDeviation="6"></feGaussianBlur>
H352 <feMerge>
A16 16 0 0 0 352,478 <feMergeNode in="blurred"></feMergeNode>
H271 <feMergeNode in="SourceGraphic"></feMergeNode>
V320 </feMerge>
A 222,334 -41 0 0 409,84 </filter>
A 192,200 0 0 0 373,2 </defs>
M355,32
A 192,200 0 0 1 381,127 <rect x="-400%" y="-400%" width="800%" height="800%" fill="Black" />
A 187.5,334 -35 0 1 256,286 <path id="glass" fill-rule="evenodd" style="fill: #000; filter:url(#white-glow)" d=
A 187.5,334 35 0 1 131,127 "M145,8
A 192,200 0 0 1 157,32 a 192,200 0 0 0 -36,82
H355 a 222,334 41 0 0 138,236
v158
h-81
a 16,16 0 0 0 0,32
h192
a 16 16 0 0 0 0,-32
h-81
v-158
a 222,334 -41 0 0 138,-236
a 192,200 0 0 0 -36,-82
h-234
m18,30
a 192,200 0 0 0 -26,95
a 187.5,334 35 0 0 125,159
a 187.5,334 -35 0 0 125,-159
a 192,200 0 0 0 -26,-95
h-198
z" /> z" />
<path id="wine-level" d= <path id="wine-level" style="fill: #000; filter:url(#white-glow)" d=
"M146,128 "M156,136
A 168,300 35 0 0 256,270 a 168,300 35 0 0 106,138
A 168,300 -35 0 0 366,128 a 168,300 -35 0 0 106,-138
z"/> z"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 585 B

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,28 +1,45 @@
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="256.0px" height="256.0px" viewBox="0 0 512 512" enable-background="new 0 0 512 512"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 524 524" enable-background="new 0 0 524 524">
<path id="glass" d=
"M139,2 <defs>
A 192,200 0 0 0 103,84 <filter id="white-glow" x="-400%" y="-400%" width="800%" height="800%">
A 222,334 41 0 0 241,320 <feFlood result="flood" flood-color="#ffffff" flood-opacity="1"></feFlood>
V478 <feComposite in="flood" result="mask" in2="SourceGraphic" operator="in"></feComposite>
H160 <feMorphology in="mask" result="dilated" operator="dilate" radius="3"></feMorphology>
A 16,16 0 0 0 160,510 <feGaussianBlur in="dilated" result="blurred" stdDeviation="6"></feGaussianBlur>
H352 <feMerge>
A16 16 0 0 0 352,478 <feMergeNode in="blurred"></feMergeNode>
H271 <feMergeNode in="SourceGraphic"></feMergeNode>
V320 </feMerge>
A 222,334 -41 0 0 409,84 </filter>
A 192,200 0 0 0 373,2 </defs>
M355,32
A 192,200 0 0 1 381,127 <rect x="-400%" y="-400%" width="800%" height="800%" fill="Black" />
A 187.5,334 -35 0 1 256,286 <path id="glass" fill-rule="evenodd" style="fill: #000; filter:url(#white-glow)" d=
A 187.5,334 35 0 1 131,127 "M145,8
A 192,200 0 0 1 157,32 a 192,200 0 0 0 -36,82
H355 a 222,334 41 0 0 138,236
v158
h-81
a 16,16 0 0 0 0,32
h192
a 16 16 0 0 0 0,-32
h-81
v-158
a 222,334 -41 0 0 138,-236
a 192,200 0 0 0 -36,-82
h-234
m18,30
a 192,200 0 0 0 -26,95
a 187.5,334 35 0 0 125,159
a 187.5,334 -35 0 0 125,-159
a 192,200 0 0 0 -26,-95
h-198
z" /> z" />
<path id="wine-level" d= <path id="wine-level" style="fill: #000; filter:url(#white-glow)" d=
"M146,128 "M156,136
A 168,300 35 0 0 256,270 a 168,300 35 0 0 106,138
A 168,300 -35 0 0 366,128 a 168,300 -35 0 0 106,-138
z"/> z"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 618 B

After

Width:  |  Height:  |  Size: 1.3 KiB