• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unique Set of n Colors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unique Set of n Colors


  • Subject: Unique Set of n Colors
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 23 Jul 2007 16:00:07 -0400

List:

 I need to generate a set of n unique colors for use in a pie chart.
The set of colors must be unique and sufficiently distinct whether n=1
or n=100 (I realize the higher the 'n', the less distinct the colors
will be). The colors must also be distributed such that red and
slightly-darker-red aren't right next to one-another.

 Further, the set of colors cannot be randomly generated. This is the
problem I'm running into with the examples I've been able to google so
far; the set of colors must be exactly the same for n from one run to
the next. Randomizing the channels fails my requirements as I have a
rather strict storage space requirement and an integer representing a
"color scheme" or "mode" is far nicer than a set of up to 100 colors
for each pie chart the user cranks out.

 I've spent a good hour googling around, trawling the cocoa-dev
archives, etc. but cannot find a good approach. This, of course, is
after spending *more* hours trying to develop something on my own that
looks good, but to no avail.

 Do any of you graphics guys / gals have anything useful or know of
any good examples or open-source projects that do something similar?

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Unique Set of n Colors
      • From: Chris Hanson <email@hidden>
    • Re: Unique Set of n Colors
      • From: Hal Mueller <email@hidden>
    • Re: Unique Set of n Colors
      • From: "B.J. Buchalter" <email@hidden>
    • Re: Unique Set of n Colors
      • From: Jay Reynolds Freeman <email@hidden>
    • Re: Unique Set of n Colors
      • From: Bill Bumgarner <email@hidden>
    • Re: Unique Set of n Colors
      • From: Steve Israelson <email@hidden>
  • Prev by Date: Re: Window Level
  • Next by Date: Re: Unique Set of n Colors
  • Previous by thread: Prevent display of installed NSPreferencePane
  • Next by thread: Re: Unique Set of n Colors
  • Index(es):
    • Date
    • Thread