Commit 7893df65 authored by Francois Techene's avatar Francois Techene
Browse files

More randomness + better dice output

parent 6884fe64
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 319.17 313.18" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter id="j" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.742857"/>
</filter>
<filter id="h" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.713761"/>
</filter>
<linearGradient id="i">
<stop stop-color="#fff" offset="0"/>
<stop stop-color="#fff" stop-opacity="0" offset="1"/>
</linearGradient>
<linearGradient id="l" x1=".29097" x2=".3052" y1=".81502" y2="1.2164">
<stop stop-color="#dad9d9" offset="0"/>
<stop stop-color="#dad9d9" offset=".27966"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="k" x1=".50001" x2=".50001" y1="-.011912" y2="1.0119">
<stop stop-color="#f9f8f8" offset="0"/>
<stop stop-color="#ececec" offset=".070067"/>
<stop stop-color="#e8e7e7" offset=".93328"/>
<stop stop-color="#b4b3b4" offset="1"/>
</linearGradient>
<radialGradient id="n" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(.50759 0 0 .65633 725.1 1850.9)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
<radialGradient id="m" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(2.9393 0 0 1.0218 -139.3 1867.4)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
</defs>
<g stroke-width=".443">
<rect transform="matrix(4 0 0 4 462.3 -3508.7)" x="-111.82" y="879.17" width="74.286" height="74.286" rx="9.2857" ry="9.2857" fill="#888a85" filter="url(#j)" opacity=".722" stroke="#888a85"/>
<rect transform="matrix(4 0 0 4 462.3 -3508.7)" x="-114.57" y="877.67" width="74.286" height="74.286" rx="9.2857" ry="9.2857" fill="url(#k)" stroke="url(#l)"/>
</g>
<path d="m183.87 52.957c0 26.558-39.622 48.088-88.497 48.088-48.876 0-88.497-21.53-88.497-48.088s39.622-48.088 88.497-48.088c48.876 0 88.497 21.53 88.497 48.088z" fill="url(#m)" filter="url(#h)" opacity=".763"/>
<path d="m294.78 258.41c0 21.284-16.465 38.539-36.776 38.539s-36.776-17.255-36.776-38.539c0-21.285 16.465-38.539 36.776-38.539s36.776 17.255 36.776 38.539z" fill="url(#n)" filter="url(#h)" opacity=".763"/>
<path d="m181.1 150.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m124.19 153.73c-0.095978 0.95996-0.095978 1.8679-0.095978 2.8518 0 15.752 12.692 28.536 28.444 28.536 15.748 0 28.536-12.784 28.536-28.536 0-0.98389 0-1.8918-0.095978-2.8518-1.588 14.248-13.772 25.3-28.44 25.3-14.672 0-26.76-11.052-28.348-25.3z" fill="#fff"/>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 319.17 313.18" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter id="h" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.713761"/>
</filter>
<filter id="j" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.742857"/>
</filter>
<linearGradient id="l" x1=".29096" x2=".3052" y1=".815" y2="1.2163">
<stop stop-color="#dad9d9" offset="0"/>
<stop stop-color="#dad9d9" offset=".27966"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="k" x1=".5" x2=".5" y1="-.011923" y2="1.0119">
<stop stop-color="#f9f8f8" offset="0"/>
<stop stop-color="#ececec" offset=".070067"/>
<stop stop-color="#e8e7e7" offset=".93328"/>
<stop stop-color="#b4b3b4" offset="1"/>
</linearGradient>
<linearGradient id="i">
<stop stop-color="#fff" offset="0"/>
<stop stop-color="#fff" stop-opacity="0" offset="1"/>
</linearGradient>
<radialGradient id="m" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(2.0304 0 0 2.6253 455.69 549.24)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
<radialGradient id="n" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(11.757 0 0 4.0874 -964.77 -173.3)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
</defs>
<rect transform="matrix(4 0 0 4 -180 -2477)" x="48.504" y="621.27" width="74.286" height="74.286" rx="9.2857" ry="9.2857" fill="#888a85" filter="url(#j)" opacity=".722" stroke="#888a85" stroke-width=".443"/>
<rect x="3.013" y="2.0172" width="297.14" height="297.14" rx="37.143" ry="37.143" fill="url(#k)" stroke="url(#l)" stroke-width="1.772"/>
<path d="m182.87 52.957c0 26.558-39.622 48.088-88.497 48.088-48.876 0-88.497-21.53-88.497-48.088s39.622-48.088 88.497-48.088c48.876 0 88.497 21.53 88.497 48.088z" fill="url(#n)" filter="url(#h)" opacity=".763"/>
<path d="m293.78 258.41c0 21.285-16.465 38.539-36.776 38.539s-36.776-17.255-36.776-38.539c0-21.285 16.465-38.539 36.776-38.539s36.776 17.254 36.776 38.539z" fill="url(#m)" filter="url(#h)" opacity=".763"/>
<path d="m268.1 54.589c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m93.103 238.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<g fill="#fff">
<path d="m35.192 241.73c-0.097992 0.95902-0.095993 1.869-0.095993 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98498 0.002014-1.895-0.095001-2.854-1.588 14.246-13.77 25.302-28.44 25.302-14.671 0-26.758-11.056-28.346-25.302z"/>
<path d="m211.19 57.734c-0.097198 0.95871-0.095215 1.8692-0.095215 2.8536 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98441 0-1.8949-0.094971-2.8536-1.5884 14.246-13.771 25.302-28.441 25.302s-26.757-11.056-28.346-25.302z"/>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 319.17 313.18" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter id="h" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.713761"/>
</filter>
<filter id="j" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.742857"/>
</filter>
<linearGradient id="l" x1=".29096" x2=".3052" y1=".815" y2="1.2163">
<stop stop-color="#dad9d9" offset="0"/>
<stop stop-color="#dad9d9" offset=".27966"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="k" x1=".5" x2=".5" y1="-.011919" y2="1.0119">
<stop stop-color="#f9f8f8" offset="0"/>
<stop stop-color="#ececec" offset=".070067"/>
<stop stop-color="#e8e7e7" offset=".93328"/>
<stop stop-color="#b4b3b4" offset="1"/>
</linearGradient>
<linearGradient id="i">
<stop stop-color="#fff" offset="0"/>
<stop stop-color="#fff" stop-opacity="0" offset="1"/>
</linearGradient>
<radialGradient id="m" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(2.0304 0 0 2.6253 455.69 675.21)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
<radialGradient id="n" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(11.757 0 0 4.0874 -964.77 -47.329)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
</defs>
<rect transform="matrix(4 0 0 4 220 -2751.1)" x="-51.496" y="689.78" width="74.286" height="74.286" rx="9.2857" ry="9.2857" fill="#888a85" filter="url(#j)" opacity=".722" stroke="#888a85" stroke-width=".443"/>
<rect x="3.013" y="2.0172" width="297.14" height="297.14" rx="37.143" ry="37.143" fill="url(#k)" stroke="url(#l)" stroke-width="1.772"/>
<path d="m182.87 52.957c0 26.558-39.622 48.088-88.497 48.088-48.876 0-88.497-21.53-88.497-48.088s39.622-48.088 88.497-48.088c48.876 0 88.497 21.53 88.497 48.088z" fill="url(#n)" filter="url(#h)" opacity=".763"/>
<path d="m293.78 258.41c0 21.285-16.465 38.539-36.776 38.539s-36.776-17.254-36.776-38.539 16.465-38.539 36.776-38.539 36.776 17.254 36.776 38.539z" fill="url(#m)" filter="url(#h)" opacity=".763"/>
<path d="m181.1 150.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m269.1 54.589c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m92.103 238.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<g fill="#fff">
<path d="m123.19 153.73c-0.098022 0.95898-0.096008 1.87-0.096008 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98401 0.002014-1.895-0.095001-2.854-1.588 14.247-13.77 25.302-28.44 25.302s-26.758-11.055-28.346-25.302z"/>
<path d="m35.192 241.73c-0.097992 0.95898-0.095993 1.87-0.095993 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98401 0.002014-1.895-0.095001-2.854-1.588 14.247-13.77 25.302-28.44 25.302s-26.758-11.055-28.346-25.302z"/>
<path d="m211.19 57.734c-0.098022 0.95902-0.096008 1.87-0.096008 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98398 0.002014-1.895-0.094971-2.854-1.588 14.247-13.77 25.302-28.44 25.302s-26.758-11.055-28.346-25.302z"/>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 319.17 313.18" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter id="h" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.713761"/>
</filter>
<filter id="j" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.742857"/>
</filter>
<linearGradient id="l" x1=".29096" x2=".3052" y1=".815" y2="1.2163">
<stop stop-color="#dad9d9" offset="0"/>
<stop stop-color="#dad9d9" offset=".27966"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="k" x1=".5" x2=".5" y1="-.011919" y2="1.0119">
<stop stop-color="#f9f8f8" offset="0"/>
<stop stop-color="#ececec" offset=".070067"/>
<stop stop-color="#e8e7e7" offset=".93328"/>
<stop stop-color="#b4b3b4" offset="1"/>
</linearGradient>
<linearGradient id="i">
<stop stop-color="#fff" offset="0"/>
<stop stop-color="#fff" stop-opacity="0" offset="1"/>
</linearGradient>
<radialGradient id="m" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(2.0304 0 0 2.6253 455.69 675.21)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
<radialGradient id="n" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(11.757 0 0 4.0874 -964.77 -47.329)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
</defs>
<rect transform="matrix(4 0 0 4 -180 -2751.1)" x="48.504" y="689.78" width="74.286" height="74.286" rx="9.2857" ry="9.2857" fill="#888a85" filter="url(#j)" opacity=".722" stroke="#888a85" stroke-width=".443"/>
<rect x="3.0129" y="2.0172" width="297.14" height="297.14" rx="37.143" ry="37.143" fill="url(#k)" stroke="url(#l)" stroke-width="1.772"/>
<path d="m182.87 52.957c0 26.558-39.622 48.088-88.497 48.088-48.876 0-88.497-21.53-88.497-48.088s39.622-48.088 88.497-48.088c48.876 0 88.497 21.53 88.497 48.088z" fill="url(#n)" filter="url(#h)" opacity=".763"/>
<path d="m293.78 258.41c0 21.285-16.465 38.539-36.776 38.539s-36.776-17.254-36.776-38.539 16.465-38.539 36.776-38.539 36.776 17.254 36.776 38.539z" fill="url(#m)" filter="url(#h)" opacity=".763"/>
<path d="m92.103 55.589c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m269.1 53.589c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m92.103 238.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m269.1 238.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<g fill="#fff">
<path d="m211.19 241.73c-0.098022 0.95898-0.096008 1.87-0.096008 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98401 0.002014-1.895-0.094971-2.854-1.588 14.247-13.771 25.302-28.441 25.302s-26.757-11.055-28.345-25.302z"/>
<path d="m35.192 241.73c-0.097992 0.95898-0.095993 1.87-0.095993 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98401 0.002014-1.895-0.095001-2.854-1.588 14.247-13.77 25.302-28.44 25.302-14.671 0-26.758-11.055-28.346-25.302z"/>
<path d="m35.192 57.734c-0.097992 0.95902-0.095993 1.87-0.095993 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98398 0.002014-1.895-0.095001-2.854-1.588 14.247-13.77 25.302-28.44 25.302-14.671 0-26.758-11.055-28.346-25.302z"/>
<path d="m211.19 57.734c-0.098022 0.95902-0.096008 1.87-0.096008 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98398 0.002014-1.895-0.094971-2.854-1.588 14.247-13.771 25.302-28.441 25.302s-26.757-11.055-28.345-25.302z"/>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 319.17 313.18" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter id="h" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.713761"/>
</filter>
<filter id="j" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.742857"/>
</filter>
<linearGradient id="l" x1=".29096" x2=".3052" y1=".815" y2="1.2163">
<stop stop-color="#dad9d9" offset="0"/>
<stop stop-color="#dad9d9" offset=".27966"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="k" x1=".5" x2=".5" y1="-.011919" y2="1.0119">
<stop stop-color="#f9f8f8" offset="0"/>
<stop stop-color="#ececec" offset=".070067"/>
<stop stop-color="#e8e7e7" offset=".93328"/>
<stop stop-color="#b4b3b4" offset="1"/>
</linearGradient>
<linearGradient id="i">
<stop stop-color="#fff" offset="0"/>
<stop stop-color="#fff" stop-opacity="0" offset="1"/>
</linearGradient>
<radialGradient id="m" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(2.0304 0 0 2.6253 455.69 675.21)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
<radialGradient id="n" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(11.757 0 0 4.0874 -964.77 -47.329)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
</defs>
<rect transform="matrix(4 0 0 4 220 -3151.1)" x="-51.496" y="789.78" width="74.286" height="74.286" rx="9.2857" ry="9.2857" fill="#888a85" filter="url(#j)" opacity=".722" stroke="#888a85" stroke-width=".443"/>
<rect x="3.013" y="2.0172" width="297.14" height="297.14" rx="37.143" ry="37.143" fill="url(#k)" stroke="url(#l)" stroke-width="1.772"/>
<path d="m182.87 52.957c0 26.558-39.622 48.088-88.497 48.088-48.876 0-88.497-21.53-88.497-48.088s39.622-48.088 88.497-48.088c48.876 0 88.497 21.53 88.497 48.088z" fill="url(#n)" filter="url(#h)" opacity=".763"/>
<path d="m293.78 258.41c0 21.285-16.465 38.539-36.776 38.539s-36.776-17.254-36.776-38.539 16.465-38.539 36.776-38.539 36.776 17.254 36.776 38.539z" fill="url(#m)" filter="url(#h)" opacity=".763"/>
<path d="m180.1 150.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m92.103 54.589c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m269.1 54.589c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m93.103 238.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m268.1 238.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<g fill="#fff">
<path d="m123.19 153.73c-0.098022 0.95898-0.096008 1.87-0.096008 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98401 0.002014-1.895-0.095001-2.854-1.588 14.246-13.77 25.302-28.44 25.302s-26.758-11.056-28.346-25.302z"/>
<path d="m211.19 241.73c-0.098022 0.95898-0.096008 1.87-0.096008 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98401 0.002014-1.895-0.094971-2.854-1.588 14.246-13.77 25.302-28.44 25.302s-26.758-11.056-28.346-25.302z"/>
<path d="m35.192 241.73c-0.097992 0.95898-0.095993 1.87-0.095993 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98401 0.002014-1.895-0.095001-2.854-1.588 14.246-13.77 25.302-28.44 25.302s-26.758-11.056-28.346-25.302z"/>
<path d="m35.192 57.734c-0.097992 0.95902-0.095993 1.87-0.095993 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98398 0.002014-1.895-0.095001-2.854-1.588 14.247-13.77 25.302-28.44 25.302s-26.758-11.055-28.346-25.302z"/>
<path d="m211.19 57.734c-0.098022 0.95902-0.096008 1.87-0.096008 2.854 0 15.75 12.691 28.536 28.441 28.536s28.536-12.786 28.536-28.536c0-0.98398 0.002014-1.895-0.094971-2.854-1.588 14.247-13.77 25.302-28.44 25.302s-26.758-11.055-28.346-25.302z"/>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 319.17 313.18" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter id="j" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.742857"/>
</filter>
<filter id="h" color-interpolation-filters="sRGB">
<feGaussianBlur stdDeviation="0.713761"/>
</filter>
<linearGradient id="i">
<stop stop-color="#fff" offset="0"/>
<stop stop-color="#fff" stop-opacity="0" offset="1"/>
</linearGradient>
<linearGradient id="l" x1=".29097" x2=".3052" y1=".81502" y2="1.2164">
<stop stop-color="#dad9d9" offset="0"/>
<stop stop-color="#dad9d9" offset=".27966"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="k" x1=".50001" x2=".50001" y1="-.011912" y2="1.0119">
<stop stop-color="#f9f8f8" offset="0"/>
<stop stop-color="#ececec" offset=".070067"/>
<stop stop-color="#e8e7e7" offset=".93328"/>
<stop stop-color="#b4b3b4" offset="1"/>
</linearGradient>
<radialGradient id="n" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(.50759 0 0 .65633 370.02 1969.4)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
<radialGradient id="m" cx="103.59" cy="94.288" r="25.809" gradientTransform="matrix(2.9393 0 0 1.0218 -218.83 1962.9)" gradientUnits="userSpaceOnUse" xlink:href="#i"/>
</defs>
<g stroke-width=".443">
<rect transform="matrix(4 0 0 4 -87.701 -3297.2)" x="25.428" y="826.31" width="74.286" height="74.286" rx="9.2857" ry="9.2857" fill="#888a85" filter="url(#j)" opacity=".722" stroke="#888a85"/>
<rect transform="matrix(4 0 0 4 -87.701 -3297.2)" x="22.678" y="824.81" width="74.286" height="74.286" rx="9.2857" ry="9.2857" fill="url(#k)" stroke="url(#l)"/>
</g>
<path d="m182.87 52.957c0 26.558-39.622 48.088-88.497 48.088-48.876 0-88.497-21.53-88.497-48.088s39.622-48.088 88.497-48.088c48.876 0 88.497 21.53 88.497 48.088z" fill="url(#m)" filter="url(#h)" opacity=".763"/>
<path d="m293.78 258.41c0 21.285-16.465 38.539-36.776 38.539s-36.776-17.255-36.776-38.539 16.465-38.539 36.776-38.539 36.776 17.255 36.776 38.539z" fill="url(#n)" filter="url(#h)" opacity=".763"/>
<path d="m93.103 150.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m268.1 150.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m92.103 54.589c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m268.1 54.589c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m93.103 239.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<path d="m268.1 238.59c0 15.75-12.768 28.518-28.518 28.518s-28.518-12.768-28.518-28.518 12.768-28.518 28.518-28.518 28.518 12.768 28.518 28.518z"/>
<g fill="#fff">
<path d="m35.191 153.73c-0.097198 0.95996-0.095215 1.8679-0.095215 2.8518 0 15.752 12.691 28.536 28.441 28.536s28.536-12.784 28.536-28.536c0-0.98389 0.002411-1.8918-0.094788-2.8518-1.5884 14.248-13.771 25.3-28.441 25.3s-26.758-11.052-28.346-25.3h-3.97e-4z"/>
<path d="m211.19 153.73c-0.095947 0.95996-0.095947 1.8679-0.095947 2.8518 0 15.752 12.692 28.536 28.444 28.536 15.748 0 28.536-12.784 28.536-28.536 0-0.98389 0-1.8918-0.096008-2.8518-1.588 14.248-13.772 25.3-28.44 25.3-14.672 0-26.76-11.052-28.348-25.3z"/>
<path d="m211.19 241.73c-0.095947 0.95996-0.095947 1.8679-0.095947 2.8518 0 15.752 12.692 28.536 28.444 28.536 15.748 0 28.536-12.784 28.536-28.536 0-0.98389 0-1.8918-0.096008-2.8518-1.588 14.248-13.772 25.3-28.44 25.3-14.672 0-26.76-11.052-28.348-25.3z"/>
<path d="m35.191 241.73c-0.097198 0.95996-0.095215 1.8679-0.095215 2.8518 0 15.752 12.691 28.536 28.441 28.536s28.536-12.784 28.536-28.536c0-0.98389 0.002411-1.8918-0.094788-2.8518-1.5884 14.248-13.771 25.3-28.441 25.3s-26.758-11.052-28.346-25.3h-3.97e-4z"/>
<path d="m35.191 57.734c-0.097198 0.95996-0.095215 1.8679-0.095215 2.8518 0 15.752 12.691 28.536 28.441 28.536s28.536-12.784 28.536-28.536c0-0.98389 0.002411-1.8918-0.094788-2.8518-1.5884 14.248-13.771 25.3-28.441 25.3s-26.758-11.052-28.346-25.3h-3.97e-4z"/>
<path d="m211.19 57.734c-0.095947 0.95996-0.095947 1.8679-0.095947 2.8518 0 15.752 12.692 28.536 28.444 28.536 15.748 0 28.536-12.784 28.536-28.536 0-0.98389 0-1.8918-0.096008-2.8518-1.588 14.248-13.772 25.3-28.44 25.3-14.672 0-26.76-11.052-28.348-25.3z"/>
</g>
</svg>
......@@ -26,7 +26,7 @@ struct _RandomizerWindow
/* Template widgets */
HdyViewSwitcherTitle *switcher_title;
GtkLabel *boolean_label;
GtkLabel *dice_label;
GtkImage *dice_image;
};
G_DEFINE_TYPE (RandomizerWindow, randomizer_window, HDY_TYPE_WINDOW)
......@@ -35,6 +35,7 @@ static int
get_randomized_number_with_range (int lower,
int upper)
{
srand((unsigned)time(NULL));
int num = (rand() %(upper - lower + 1)) + lower;
return num;
}
......@@ -61,10 +62,14 @@ dice_randomize_clicked_cb (GtkButton *btn,
{
int num = get_randomized_number_with_range(1,6);
char str[1];
sprintf(str, "%d", num);
char image_name[6];
sprintf(image_name, "dice-%d", num);
gtk_label_set_text(self->dice_label, str);
gtk_image_set_from_icon_name (self->dice_image,
image_name,
GTK_ICON_SIZE_INVALID);
//gtk_label_set_text(self->dice_label, str);
}
......@@ -78,7 +83,7 @@ randomizer_window_class_init (RandomizerWindowClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/Randomizer/randomizer-window.ui");
gtk_widget_class_bind_template_child (widget_class, RandomizerWindow, switcher_title);
gtk_widget_class_bind_template_child (widget_class, RandomizerWindow, boolean_label);
gtk_widget_class_bind_template_child (widget_class, RandomizerWindow, dice_label);
gtk_widget_class_bind_template_child (widget_class, RandomizerWindow, dice_image);
gtk_widget_class_bind_template_callback (widget_class, boolean_randomize_clicked_cb);
gtk_widget_class_bind_template_callback (widget_class, dice_randomize_clicked_cb);
}
......
......@@ -48,7 +48,7 @@
<property name="label" translatable="yes"></property>
<property name="justify">center</property>
<property name="wrap">True</property>
<property name="opacity">0.5</property>
<property name="opacity">1</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="scale" value="2"/>
......@@ -99,17 +99,9 @@
<property name="hexpand">True</property>
<property name="spacing">24</property>
<child>
<object class="GtkLabel" id="dice_label">
<object class="GtkImage" id="dice_image">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes"></property>
<property name="justify">center</property>
<property name="wrap">True</property>
<property name="opacity">0.5</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="scale" value="2"/>
</attributes>
<property name="pixel-size">128</property>
</object>
</child>
......
......@@ -6,5 +6,11 @@
<file preprocess="xml-stripblanks">icons/dialog-question-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/dice-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/numbers-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/dice-1.svg</file>
<file preprocess="xml-stripblanks">icons/dice-2.svg</file>
<file preprocess="xml-stripblanks">icons/dice-3.svg</file>
<file preprocess="xml-stripblanks">icons/dice-4.svg</file>
<file preprocess="xml-stripblanks">icons/dice-5.svg</file>
<file preprocess="xml-stripblanks">icons/dice-6.svg</file>
</gresource>
</gresources>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment