UIColour manual set help

Discussion in 'iOS Programming' started by nashyo, Apr 15, 2012.

  1. nashyo macrumors 6502

    nashyo

    Joined:
    Oct 1, 2010
    Location:
    Bristol
    #1
    [UIColor colorWithRed:float green:float blue:float alpha:float];

    Is there a resource online for establishing what the values should be set as for a specific colour? Like a colour palette or something visual?
     
  2. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    in the Interface Builder, when you click color, you can switch around to RGB.
    Because the values for "with color" are in RGB, and you have to divide by 255, because it's from 0-1 scale.
     
  3. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #3
    If you have on-screen color samples, run DigitalColor Meter.app, located in your /Utilities folder. From its popup, choose "RGB as Percentage", then mentally move the decimal point 2 places left.
     
  4. nashyo thread starter macrumors 6502

    nashyo

    Joined:
    Oct 1, 2010
    Location:
    Bristol
    #4
    thanks.

    the utilities app digital colour meter, doesn't have 'display as percentage' as an option. but it does have 'display native values'. these values go up to 255 i think.
     

Share This Page