color in python programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amirayat
    New Member
    • Jan 2009
    • 9

    color in python programming

    Hi dears,
    Help me write a python program to get all the colors and their nickname.
    for example b is used for blue and r is used for red and ...
    I need all the colors .
    Best,
    Ayat.
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    You should show us that you have made an effort to code this for yourself. Your question is very vague. Can you provide some specifics?

    -BV

    Comment

    • amirayat
      New Member
      • Jan 2009
      • 9

      #3
      I dont know the cods of color.
      For example, I want to make a plot with a spicial color such as gray or any color else, how can I find their codes?

      Comment

      • bvdet
        Recognized Expert Specialist
        • Oct 2006
        • 2851

        #4
        red, green, blue = (x,y,z)
        where the range of values for x,y,z is 0-255.

        White: (255,255,255)
        Medium gray: (100,100,100)
        Yellow: (255,255,0)
        Magenta: (255,0,255)
        Cyan: (0,255,255)

        The color would appear to be a yellow of lesser intensity at (200,200,0).

        -BV

        Comment

        Working...