I was working with using DomiantColors and the code provided from the Creative Computation course worked. But my code did not I have tried different codes but every time it says not a graphics directive. But when i use it with some other code already done it works. Or manually type in the RGB numbers. But why isn't it working for the code I created it seems that something is missing here. What am I missing? How can I improve. I would like to be able to do the same thing for using "color squares" I can't find the documentation explaining what the color square is.
![my code that won't work](https://community.wolfram.com//c/portal/getImageAttachment?filename=notwork.jpg&userId=2017388)
I also tried this but will not work either. ![code not working second example](https://community.wolfram.com//c/portal/getImageAttachment?filename=notworking2.jpg&userId=2017388)
So why do I have to manually type in the RGB color? But this code will work.
![working code](https://community.wolfram.com//c/portal/getImageAttachment?filename=works.jpg&userId=2017388)
Thanks for your help!