# Makie RGFf0 Undefeined VariableError

**URL:** https://discourse.julialang.org/t/makie-rgff0-undefeined-variableerror/74882
**Category:** General Usage
**Created:** [January 19, 2022, 7:26pm UTC](https://discourse.julialang.org/t/makie-rgff0-undefeined-variableerror/74882 "2022-01-19T19:26:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rajmac](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@rajmac](https://discourse.julialang.org/u/rajmac)
#### Post date: [January 19, 2022, 7:26pm UTC](https://discourse.julialang.org/t/makie-rgff0-undefeined-variableerror/74882/1 "2022-01-19T19:26:12Z")

</div>

I am new to JUlia and have been working my way in with different tutorials. So far I have been able to find sources for most of my problems. However using GLMakie to draw figures I have had difficulty in using a color =( rand(RGBf0) ,0.5)) instruction to generate random colors. This gives an error UndefinedVarError RGBf0 not defined. I am running Julia1.7.1 on Windows 10 and using GLMakie 0.5. Since this method appears widely in different scripts in tutorials I am perplexed as to why i am having this difficulty. Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [January 19, 2022, 7:42pm UTC](https://discourse.julialang.org/t/makie-rgff0-undefeined-variableerror/74882/2 "2022-01-19T19:42:53Z")

</div>

There was a rename of a range of types that ended with `f0` (for Float32) a while ago, those are now generally just ending in `f` so `RGBf` should work.

---

<div class="post-metadata">

### Author: ![rajmac](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@rajmac](https://discourse.julialang.org/u/rajmac)
#### Post date: [January 20, 2022, 7:50pm UTC](https://discourse.julialang.org/t/makie-rgff0-undefeined-variableerror/74882/3 "2022-01-20T19:50:39Z")

</div>

Cheers Jules that worked perfectly. Thanks again
