REPL: RGB colors

Is it possible to represent colors in REPL.

The below code does not show the color, but a string representation of the RGB struct.

using Colors
green = RGB(0.,255,0.)

Is it possible / where do I start if I want e.g. as an output a shape with the color (here green).

function square_with_color(color::RGB)
 # is this possible?
end

Thanks for your help!

I am not sure what you are trying to do here — the REPL is a text-based interface, and it won’t be able to draw arbitrary shapes. That said, I find

for color output.

1 Like

Thanks for the swift reply. This helps a lot!