News for hackers. Stuff that matters.
Re:Show HN: NSString + Ruby by wrl on Thursday October 10, 2013 @07:23PM (#6530617)
I prefer:

    #define RGB(color)                        \
        (((color & 0xFF0000) >> 16) / 255.f), \
        (((color & 0x00FF00) >> 8) / 255.f),  \
        (((color & 0x0000FF)) / 255.f)
Pass in an HTML-style color hex triplet.

There are no comments on this comment yet.