Corona SDK setFillColor not coloring when mix colors
coronasdk, lua
Solution
According to the documentation, `setFillColor` requires colors in the range of `[0, 1]` as opposed to `[0, 255]`. So for example, you might try this instead.
rect_upperBackground:setFillColor(100 / 255, 129 / 255, 93 / 255)
rect_upperBackground:setFillColor(0.4, 0.2, 0.5)
Problem
Im just a new user of Corona SDK and Im following some exercises of a book. I tried to create a rectangle and color it, but if i put setFillColor(255,0,0) or put 255 in green or blue it works. The problem is when i try to mix colors like setFillColor(100,129,93) it just paints a white rectangle. This is my main.lua: ``` rect_upperBackground = display.newRect(150, 150, 100, 50) rect_upperBackground:setFillColor(49, 49, 49) ```