# Change color of circle with trackbars

**URL:** https://discourse.julialang.org/t/change-color-of-circle-with-trackbars/36355
**Category:** New to Julia
**Tags:** question
**Created:** [March 22, 2020, 6:52pm UTC](https://discourse.julialang.org/t/change-color-of-circle-with-trackbars/36355 "2020-03-22T18:52:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![asamanta1920](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asamanta1920/32/16365_2.png) [@asamanta1920](https://discourse.julialang.org/u/asamanta1920)
#### Post date: [March 22, 2020, 6:52pm UTC](https://discourse.julialang.org/t/change-color-of-circle-with-trackbars/36355/1 "2020-03-22T18:52:50Z")

</div>

I am trying to draw a circle and then change the color of the circle based on the values from the trackbars.

So far, I can draw the circle(picture of the code is attached). I can make the trackbar but the trackbar changes the color of a default square (I didn’t create the square. A picture of the code and result is attached) .

The code can also be found at [https://github.com/asamanta1920/Julia\_Racecar\_MIT\_MS\_Program/blob/master/03-computer-vision-julia/02-trackbars/JuliaTrackbars.ipynb.![Result|690x367](upload://e0oGLq0PkL42xZeFbuvmbUuU1zz.png)](https://github.com/asamanta1920/Julia_Racecar_MIT_MS_Program/blob/master/03-computer-vision-julia/02-trackbars/JuliaTrackbars.ipynb.!%5BResult%7C690x367%5D(upload://e0oGLq0PkL42xZeFbuvmbUuU1zz.png))

How can I change my code so that the trackbars change the color of the circle and not the color of the square?

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [March 22, 2020, 8:07pm UTC](https://discourse.julialang.org/t/change-color-of-circle-with-trackbars/36355/2 "2020-03-22T20:07:14Z")

</div>

I’ve never been able to get Luxor working properly with Jupiter notebooks and Interact (some issues here: [Issues · JuliaGizmos/Interact.jl · GitHub](https://github.com/JuliaGizmos/Interact.jl/issues?q=is%3Aissue+author%3Acormullion)) so I can’t personally recommend it; it may simply be not good enough for this purpose without some engineering works. You may be better off trying Makie.jl or Gtk.jl… But I hope you can be the first person to make it work!

---

<div class="post-metadata">

### Author: ![asamanta1920](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asamanta1920/32/16365_2.png) [@asamanta1920](https://discourse.julialang.org/u/asamanta1920)
#### Post date: [March 22, 2020, 9:47pm UTC](https://discourse.julialang.org/t/change-color-of-circle-with-trackbars/36355/3 "2020-03-22T21:47:07Z")

</div>

Thank you for your input. Shashi Gowda from MIT helped me with a code that worked in Atom but not in Jupyter Notebook. You are absolutely right, there is some issue. Now, I will look in the Makie.jl and Gtk.jl and see what might help.
