Excellent piece of work Pablo. It works out of the box.
ColorPalette subclasses do: #show.
I like very much the small animations you did :-)
Alexandre
On Apr 25, 2014, at 12:13 AM, Pablo Estefó pestefo@gmail.com wrote:
Hi everyone,
Well, as you probably read, I was working on a Color palette. The thing is that i loved the color schemes from www.colorbrewer2.org , so I decided to bring them into Pharo/Moose then everyone can use them directly.
So I created ColorPalette. A color palette is a collection of different color schemes that follows a common purpose, they are: sequential, qualitative and diverging.
Sequential schemes are suited to ordered data that progress from low to high. <Screenshot 2014-04-24 23.45.43.png>
Diverging schemes put equal emphasis on mid-range critical values and extremes at both ends of the data range .<Screenshot 2014-04-24 23.46.46.png>
Qualitative schemes do not imply magnitude differences between legend classes, and hues are used to create the primary visual differences between classes . <Screenshot 2014-04-24 23.46.20.png>
Picking the right scheme from a palette You can see all the color schemes for each palette by executing =.=.=. ColorPalette sequential show. ColorPalette diverging show. ColorPalette qualitative show. =.=.=. You should see something like this: <PastedGraphic-8.tiff>
Getting colours from a scheme To get the colours for an specific scheme just clic on the name of the scheme <Screenshot 2014-04-24 23.53.36.png> And you will get the code line to get them. <PastedGraphic-7.tiff> Example: =.=.=. ColorPalette qualitative colors: 7 scheme:'Accent' =.=.=.
If you want to focus on a specific color, just click on it to inspect it.
Partitioning data into colors With Ricardo, we were working on a new normalizer to discretize a list of values into a smaller list of colours using Sequential or Diverging color schemes.
Example: =.=.=. RTBucketColorNormalizer example =.=.=.
What do you think?
Cheers, Pablo
On Apr 24, 2014, at 11:33, Alexandre Bergel alexandre.bergel@me.com wrote:
Excellent! Super!
Alexandre
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Apr 24, 2014, at 10:55 AM, Pablo Estefó pestefo@gmail.com wrote:
Yep. It is not completely integrated into Roassal2 Color Normalizers, I will announce it today.
These are the palettes: <PastedGraphic-6.tiff> Keep in tune ;-)
On Apr 24, 2014, at 10:39, Alexandre Bergel alexandre.bergel@me.com wrote:
Hi!
Just to say that Pablo is working on a harmonized color set for Roassal2. He will probably announce it soon :-) I know some of you are interested in that :-)
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.