[squeak-dev] Bug in Form>>#asFormOfDepth:?

Bob Arning arning315 at comcast.net
Mon Sep 9 15:03:03 UTC 2019


fwiw, Color r: 0.0 g: 0.0 b: 0.004is squeak's way of representing black 
in 16 bits so 0 can mean transparent

On 9/9/19 8:56 AM, Tobias Pape wrote:
>> Other examples:
>>
>> "Example 2"
>> f := Form extent: 1 asPoint depth: 1.
>> f colorAt: 0 @ 0 put: Color red.
>> g := f asFormOfDepth: 32.
>> g colorAt: 0 @ 0 "--> (Color r: 0.0 g: 0.0 b: 0.004)"
> yes, because you go from black/white to 32bit. I would have expected r0g0b0, but there might some rounding go on.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190909/83dd0218/attachment.html>


More information about the Squeak-dev mailing list