This is now implemented in Color.jl; not tagged yet, but you can of course 
do Pkg.checkout("Color")

Fun thing to try:

using Interact, Color
@manipulate for m = 1:50, n = 1:100
    RGB[RGB(i/m,j/n,0) for i=1:m, j=1:n]
end

On Monday, June 9, 2014 2:07:22 PM UTC-4, Stefan Karpinski wrote:
>
> That does seem like a rather nice solution. Makes sense for matrices too – 
> displaying a color matrix as a 2D color swatch would be handy.
>
>
> On Mon, Jun 9, 2014 at 1:54 PM, Steven G. Johnson <[email protected] 
> <javascript:>> wrote:
>
>> Rather than defining a ColorVector type to display color vectors as 
>> rainbow swatches, it might be nice to update the writemime function for 
>> AbstractVector{<:ColorValue} in Color.jl 
>> <https://github.com/JuliaLang/Color.jl/blob/master/src/display.jl#L19-L50> 
>> so 
>> that it displays long vectors more nicely.  That is, shrink the width of 
>> the swatch size further for long vectors, e.g. in order to fix the overall 
>> width.
>>
>
>

Reply via email to