Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help me with Color3? I don't understand

Asked by 8 years ago
local button = script.Parent.ImageButton
button.MouseEnter:connect(function(enter)
    button.ImageColor3 = Color3.new(103, 51, 0)-- Help me here can you tell me a system to find out how to make this color into a color3 form?

end)

button.MouseLeave:connect(function(leave)
    button.ImageColor3 = Color3.new(170, 85, 0)-- Same with this
end)

I looked up friazas explanation of this but it makes no sense something like divide by 50 its weird, please help me.

1 answer

Log in to vote
0
Answered by
Decemus 141
8 years ago

Well, the three numbers stand for (r,g,b) If you want to look up what they look like, go to http://www.colorschemer.com/online.html Put in the numbers on the left side.

0
it doesn't show the decimals duckyo011 36 — 8y
0
What do you mean? Decemus 141 — 8y
0
using color3 in a a script the color is between 0 to1 duckyo011 36 — 8y
0
Oh, divide them all by 255 like (103/255,51/255,0/255) Decemus 141 — 8y
View all comments (2 more)
0
thanks i seen that on wiki duckyo011 36 — 8y
0
Give me a reputation point if I helped you! Decemus 141 — 8y
Ad

Answer this question