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

Tobias Pape Das.Linux at gmx.de
Mon Sep 9 15:07:04 UTC 2019


> On 09.09.2019, at 17:03, Bob Arning <arning315 at comcast.net> wrote:
> 
> fwiw, Color r: 0.0 g: 0.0 b: 0.004 is squeak's way of representing black in 16 bits so 0 can mean transparent

ah; i remember. thanks bob!

> 
> 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.
>> 
>> 
> 
> 




More information about the Squeak-dev mailing list