i’m having a strange issue with banding between certain colors of a gradient.
to create the gradient, i’m drawing evenly spaced circle wedges from the center to the border, and filling each circle wedge from a bitmap line gradient pixel in a loop.
i’m creating a circle with 3600 wedges, although it doesn’t look like it based on the screen shot within the orange color that is produced from gradating from red to yellow numbers. adding a orange number between red and yellow doesn’t help. but if i create the circle with only 360 wedges, the gradient banding is much more obvious. 3600 is probably overkill, and doesn’t really add more detail over, say, making the circle of 1440 wedges, but i don’t know any other way to slightly elevate this banding issue.
any ideas how i can fix this, or what i’m doing wrong? could it be caused by the circleMatrix rotation?
alt text http://www.freeimagehosting.net/uploads/7e3382befe.jpg
Edit:
Due to precision error some artifact can appear since you have only a range of 255 values to distribute.
To minimize this visual effect you can try to add some blur to your color band, but beware of the join between the left and the right side :
Without full code to test, hard to know if i aim in the right direction 😉
i*Math.pi/180and not /1800, so now you can go to360and not3600why start from 1 and not from 0 ?
try to play with the line thickness and use the lineGradientStyle
You referer to an
objMatrixbut create acircleMatrix