[squeak-dev] Questionable Color>>rgbTriplet

Bert Freudenberg bert at freudenbergs.de
Thu Dec 19 17:18:37 UTC 2013


On 19.12.2013, at 00:17, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com> wrote:

> The red/green/blue component of a Color are currently stored each on 10 bits.
> That about 1024 combinations.
> 
> rgbTriplet return values scales between 0.0 and 1.0.
> But why does it round each component to 0.01 instead of 0.001?

Perhaps because it matches Color>>shortPrintString? 

> OK, it's not used in trunk image, but...


Now with our accurate float printing, the rounding in rgbTriplet seems pretty useless - maybe we should just remove it?

- Bert -


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20131219/73a9a621/attachment.htm


More information about the Squeak-dev mailing list