# REPL: RGB colors

**URL:** https://discourse.julialang.org/t/repl-rgb-colors/58002
**Category:** New to Julia
**Created:** [March 26, 2021, 10:14am UTC](https://discourse.julialang.org/t/repl-rgb-colors/58002 "2021-03-26T10:14:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ZettEff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zetteff/32/31976_2.png) [@ZettEff](https://discourse.julialang.org/u/ZettEff)
#### Post date: [March 26, 2021, 10:14am UTC](https://discourse.julialang.org/t/repl-rgb-colors/58002/1 "2021-03-26T10:14:50Z")

</div>

Is it possible to represent colors in REPL.

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

```julia
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).

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

```

Thanks for your help!

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [March 26, 2021, 10:36am UTC](https://discourse.julialang.org/t/repl-rgb-colors/58002/2 "2021-03-26T10:36:11Z")

</div>

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

[https://github.com/KristofferC/Crayons.jl](https://github.com/KristofferC/Crayons.jl)

for color output.

---

<div class="post-metadata">

### Author: ![ZettEff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zetteff/32/31976_2.png) [@ZettEff](https://discourse.julialang.org/u/ZettEff)
#### Post date: [March 26, 2021, 10:43am UTC](https://discourse.julialang.org/t/repl-rgb-colors/58002/3 "2021-03-26T10:43:34Z")

</div>

Thanks for the swift reply. This helps a lot!
