# GradientBrush appears too banded, solution?

**URL:** <https://forum.juce.com/t/gradientbrush-appears-too-banded-solution/250>\
**Category:** General JUCE discussion\
**Created:** [May 14, 2005, 10:20pm UTC](https://forum.juce.com/t/gradientbrush-appears-too-banded-solution/250 "2005-05-14T22:20:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![angrycat](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@angrycat](https://forum.juce.com/u/angrycat)\
**Post date:** [May 14, 2005, 10:20pm UTC](https://forum.juce.com/t/gradientbrush-appears-too-banded-solution/250/1 "2005-05-14T22:20:31Z")

</div>

I am making a gradient brush that is for some reason banding very blatantly. Any way to make it smoother?

Here is the brush decleration:

[code]GradientBrush gbrushWorkspace(Colour(75,75,75), 0, 20, Colour(87,87,87), 0, 748, false);

g.fillRect(10, 20, 1004,748);

[/code]

The graphics context is on a 1024x768 dialog window surface, for whatever that’s worth.

I’ve attached a screenshot to show what I mean:

 ![](http://angrycat.typepad.com/gradient.png)[/img]

---

<div class="post-metadata">

**Author:** ![jtxx000](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jtxx000](https://forum.juce.com/u/jtxx000)\
**Post date:** [May 14, 2005, 10:52pm UTC](https://forum.juce.com/t/gradientbrush-appears-too-banded-solution/250/2 "2005-05-14T22:52:38Z")

</div>

the only way to get it any smoother would be to dither but I’m not sure juce supports it. a quick fix would be to just make the colors more contrasting.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 9:57am UTC](https://forum.juce.com/t/gradientbrush-appears-too-banded-solution/250/3 "2017-05-12T09:57:00Z")

</div>

Closed on May 12, 2017, 9:57am UTC


