Re: colorful Problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: colorful Problem

Ralph Boland
On 14/03/20 7:55 AM, Ralph Boland wrote:
>> Note that  Color colorNames size = 128
>>
>> but:  Color colorNames asSet size  = 84

> Which vm and image is this result from?

I>  couldn't replicate it on linux vm + 5.3-19431 release.

> Regards .. Subbu

I went back to my original image but couldn't reproduce
the problem there (appologies for not doing this in the first place).

The problem is from a method I created to name the crayon colors
which wern't properly named when first released.  I made
Color>>initialize invoke this method and it got invoked even though
it is no longer necessary.  I have now removed this method.

Apologies again.

Ralph Boland

Reply | Threaded
Open this post in threaded view
|

Re: colorful Problem

Christoph Thiede

In Squeak 5.3:


colors := Color colorNames asBag.
colors asSet select: [:color | (colors occurrencesOf: color) > 1]. "a Set(#magenta)"


Von: Squeak-dev <[hidden email]> im Auftrag von Ralph Boland <[hidden email]>
Gesendet: Samstag, 14. März 2020 22:38:23
An: [hidden email]
Betreff: Re: [squeak-dev] colorful Problem
 
On 14/03/20 7:55 AM, Ralph Boland wrote:
>> Note that  Color colorNames size = 128
>>
>> but:  Color colorNames asSet size  = 84

> Which vm and image is this result from?

I>  couldn't replicate it on linux vm + 5.3-19431 release.

> Regards .. Subbu

I went back to my original image but couldn't reproduce
the problem there (appologies for not doing this in the first place).

The problem is from a method I created to name the crayon colors
which wern't properly named when first released.  I made
Color>>initialize invoke this method and it got invoked even though
it is no longer necessary.  I have now removed this method.

Apologies again.

Ralph Boland



Carpe Squeak!
Reply | Threaded
Open this post in threaded view
|

Re: colorful Problem

Nicolas Cellier
Because magenta is also in Color orderedCrayonColorNames

Le lun. 16 mars 2020 à 20:01, Thiede, Christoph <[hidden email]> a écrit :

In Squeak 5.3:


colors := Color colorNames asBag.
colors asSet select: [:color | (colors occurrencesOf: color) > 1]. "a Set(#magenta)"


Von: Squeak-dev <[hidden email]> im Auftrag von Ralph Boland <[hidden email]>
Gesendet: Samstag, 14. März 2020 22:38:23
An: [hidden email]
Betreff: Re: [squeak-dev] colorful Problem
 
On 14/03/20 7:55 AM, Ralph Boland wrote:
>> Note that  Color colorNames size = 128
>>
>> but:  Color colorNames asSet size  = 84

> Which vm and image is this result from?

I>  couldn't replicate it on linux vm + 5.3-19431 release.

> Regards .. Subbu

I went back to my original image but couldn't reproduce
the problem there (appologies for not doing this in the first place).

The problem is from a method I created to name the crayon colors
which wern't properly named when first released.  I made
Color>>initialize invoke this method and it got invoked even though
it is no longer necessary.  I have now removed this method.

Apologies again.

Ralph Boland




Reply | Threaded
Open this post in threaded view
|

Re: colorful Problem

Nicolas Cellier
Another interesting snippet:

(Color allInstances asSet select: [:e | e names size  > 1]) collect: [:color | color names].

 a Set(#(#yellow #lemon) #(#red #maraschino) #(#blue #blueberry) #(#lightCyan #ice) #(#green #spring) #(#lightOrange #cantaloupe) #(#white #snow) #(#cyan #turquoise) #(#black #licorice))


Le lun. 16 mars 2020 à 23:34, Nicolas Cellier <[hidden email]> a écrit :
Because magenta is also in Color orderedCrayonColorNames

Le lun. 16 mars 2020 à 20:01, Thiede, Christoph <[hidden email]> a écrit :

In Squeak 5.3:


colors := Color colorNames asBag.
colors asSet select: [:color | (colors occurrencesOf: color) > 1]. "a Set(#magenta)"


Von: Squeak-dev <[hidden email]> im Auftrag von Ralph Boland <[hidden email]>
Gesendet: Samstag, 14. März 2020 22:38:23
An: [hidden email]
Betreff: Re: [squeak-dev] colorful Problem
 
On 14/03/20 7:55 AM, Ralph Boland wrote:
>> Note that  Color colorNames size = 128
>>
>> but:  Color colorNames asSet size  = 84

> Which vm and image is this result from?

I>  couldn't replicate it on linux vm + 5.3-19431 release.

> Regards .. Subbu

I went back to my original image but couldn't reproduce
the problem there (appologies for not doing this in the first place).

The problem is from a method I created to name the crayon colors
which wern't properly named when first released.  I made
Color>>initialize invoke this method and it got invoked even though
it is no longer necessary.  I have now removed this method.

Apologies again.

Ralph Boland