<div dir="ltr"><div>Another interesting snippet:</div><div><br></div><div>(Color allInstances asSet select: [:e | e names size  > 1]) collect: [:color | color names].</div><div><br></div><div> a Set(#(#yellow #lemon) #(#red #maraschino) #(#blue #blueberry) #(#lightCyan #ice) #(#green #spring) #(#lightOrange #cantaloupe) #(#white #snow) #(#cyan #turquoise) #(#black #licorice))</div><div><br></div><div>See also <a href="http://source.squeak.org/inbox/Graphics-nice.407.diff">http://source.squeak.org/inbox/Graphics-nice.407.diff</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 16 mars 2020 à 23:34, Nicolas Cellier <<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Because magenta is also in Color orderedCrayonColorNames</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 16 mars 2020 à 20:01, Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de" target="_blank">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div>


<div dir="ltr">
<div id="gmail-m_2520264373303925325gmail-m_-463154799866364617x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif">
<p>In Squeak 5.3:</p>
<p><br>
</p>
<p></p>
<div>colors := Color colorNames asBag.</div>
<div>colors asSet select: [:color | (colors occurrencesOf: color) > 1]. "<span>a Set(#magenta)"</span></div>
<br>
<p></p>
<div id="gmail-m_2520264373303925325gmail-m_-463154799866364617x_Signature">
<div id="gmail-m_2520264373303925325gmail-m_-463154799866364617x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper">
<div>
<div id="gmail-m_2520264373303925325gmail-m_-463154799866364617x_Item.MessagePartBody">
<div id="gmail-m_2520264373303925325gmail-m_-463154799866364617x_Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="gmail-m_2520264373303925325gmail-m_-463154799866364617x_divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="gmail-m_2520264373303925325gmail-m_-463154799866364617x_Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont"></font></div>
</div>
</font></div>
</div>
</div>
</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_2520264373303925325gmail-m_-463154799866364617x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> Squeak-dev <<a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" target="_blank">squeak-dev-bounces@lists.squeakfoundation.org</a>> im Auftrag von Ralph Boland <<a href="mailto:rpboland@gmail.com" target="_blank">rpboland@gmail.com</a>><br>
<b>Gesendet:</b> Samstag, 14. März 2020 22:38:23<br>
<b>An:</b> <a href="mailto:squeak-dev@lists.squeakfoundation.org" target="_blank">squeak-dev@lists.squeakfoundation.org</a><br>
<b>Betreff:</b> Re: [squeak-dev] colorful Problem</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div>On 14/03/20 7:55 AM, Ralph Boland wrote:<br>
>> Note that  Color colorNames size = 128<br>
>><br>
>> but:  Color colorNames asSet size  = 84<br>
<br>
> Which vm and image is this result from?<br>
<br>
I>  couldn't replicate it on linux vm + 5.3-19431 release.<br>
<br>
> Regards .. Subbu<br>
<br>
I went back to my original image but couldn't reproduce<br>
the problem there (appologies for not doing this in the first place).<br>
<br>
The problem is from a method I created to name the crayon colors<br>
which wern't properly named when first released.  I made<br>
Color>>initialize invoke this method and it got invoked even though<br>
it is no longer necessary.  I have now removed this method.<br>
<br>
Apologies again.<br>
<br>
Ralph Boland<br>
<br>
</div>
</span></font>
</div>

<br>
</blockquote></div>
</blockquote></div>