Le 11/2/15 02:38, Andy Burnett a ��crit��:
I would like to create an array with a collection of colour values.

I tried both:

colorList := {Color blue}
and
colourList := {Color named: #blue.}.

In both cases it evaluates to 'Color blue' rather than the Color object.��

Why do you rely on text when you can talk to objects?
Open an inspector and get the full power :)

What surprised me was that:

charList := {Character digitValue:35. Character digitValue:33.}.

Does evaluate to an array of two characters.�� What is going on?

andy inspect the result and you will see that you get an array with two character.

Color blue
������ print
������ Color blue

because Color blue is a color which corresponds exactly to the result of sending the message blue to Color.

Some meta approach:
������ Color blue hue

������ Color blue intensity

if it replies to color message, it is a color.




Cheers
Andy
���