From: "Oliver Schmidt"; on Sun., May 22, 2011; at 05:36 PM -0400 > > >> Hm, do we really want to go into color approximation? What is the > >> metric for similarity? I'd rather go for a simple "Either I have > >> what you ask for, or I don't". The additional function allocating > >> colors from RGB values maybe could allow for approximation. > > > OK, how about "In case the given color is unavailable, the driver > > MAY allocate a similar color, and return its index." That leaves it > > open to the driver, and will help in cases where approximation is > > easy -- for example, a monochrome driver that may return black for > > TGI_COLOR_BLACK and white for all others. > > With "MAY", it makes sense to me too. But, a program still needs to know _when_ it happens! Perhaps, an error code could be set when tgi_alloccolor() approximates (the message might be "approximate color", "color is approximate", or "color was approximated"). ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Tue May 24 15:48:31 2011
This archive was generated by hypermail 2.1.8 : 2011-05-24 15:48:34 CEST