Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 845771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:30:26+00:00 2026-05-15T06:30:26+00:00

i’m having a strange issue with banding between certain colors of a gradient. to

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:30:27+00:00Added an answer on May 15, 2026 at 6:30 am

    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 :

    //...
    
    //Assign bitmapData to the leftToRightLine
    var leftToRightLineBitmapData:BitmapData = 
                       new BitmapData(leftToRightLine.width,leftToRightLine.height);
    leftToRightLineBitmapData.draw(leftToRightLine);
    
    // add some blur filter to the color band
    leftToRightLine.filters=[new BlurFilter(2,0, 3)];
    
    // copy the color band on the bitmap but but starting at 1 pixel right to avoid
    // the blur on the start
    leftToRightLineBitmapData.draw(leftToRightLine, new Matrix(1,0,0,1, 1));
    
    for(var i:int = 1; i < (DEFAULT_BANDING_QUALITY + 1); i++)
    {
      //...
    

    Without full code to test, hard to know if i aim in the right direction 😉

    • There is an error in your radian conversion it’s i*Math.pi/180 and not /1800, so now you can go to 360 and not 3600
    • why start from 1 and not from 0 ?

    • try to play with the line thickness and use the lineGradientStyle

    • You referer to an objMatrix but create a circleMatrix

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to create an if statement in PHP that prevents a single post

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.