× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Gradient brush like heap

Gayot Fow
Feb 05, 2015
<p>The tool for the 'heap' is a radial gradient brush with very hard colour stops...</p> <p>This declaration...</p> <pre><code> &lt;RadialGradientBrush GradientOrigin="0.5, 1.12" RadiusX="1.5" RadiusY="1" MappingMode="RelativeToBoundingBox" SpreadMethod="Pad" &gt; &lt;GradientStop Offset="0" Color="IndianRed"/&gt; &lt;GradientStop Offset="0.49" Color="IndianRed"/&gt; &lt;GradientStop Offset="0.5" Color="Pink"/&gt; &lt;/RadialGradientBrush&gt; </code></pre> <p>...will produce an effect like this...</p> <p><img src="http://i.stack.imgur.com/AXEgw.jpg" alt="enter image description here"></p> <p>You can replace the colours with your own to produce an exact replica of the spec...</p> <p>The docs for this type of brush are at <a href="http://msdn.microsoft.com/en-us/library/system.windows.media.radialgradientbrush.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.windows.media.radialgradientbrush.aspx</a></p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/23960817/Gradient%20brush%20like%20heap/23961195">Stack Overflow</a>.</p>
comments powered by Disqus