floats & Color APIs
floats & Color APIs
- Subject: floats & Color APIs
- From: Eric Gorr <email@hidden>
- Date: Mon, 23 Oct 2006 14:47:08 -0400
I'm just curious...
What is the reasoning behind moving to floats to represent color in
Apple's Cocoa color APIs?
For example,
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSColor_Class/Reference/Reference.html#//
apple_ref/occ/instm/NSColor/blueComponent>
Why wasn't 1 byte or even 2 bytes considered to be enough?
Were the reasons purely having to do with the speed of certain
calculations?
Is there any reason not to just covert these numbers to single byte
components for the purpose of file storage?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden