generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How Color3 Works

Previous Thread :: Next Thread 
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
27 Oct 2011 07:42 PM
Okay, I don't get how the Color3 Value works, like 255,255,255, is that suppose to be white or black? Btw, is there an easy way to use to color guis?
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
27 Oct 2011 07:44 PM
RGB
Red Green Blue
0-255, 0-255, 0-255

It's telling the computer how much red, green, and blue to put in that color.
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
27 Oct 2011 07:45 PM
Okay, so 255,255,255 means black right?
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
27 Oct 2011 07:46 PM
Well for some reason, ROBLOX decided to use a 0 through 1 scale instead of 0 through 255... Here is a quick Color3 conversion function:

    C3 = function(Red, Green, Blue)
        return Color3.new(Red / 255, Green / 255, Blue / 255)
    end

And to use it, just replace Color3.new with C3.


----------


Color3 is ROBLOX's color function. It is based off of 0 through 1, red, green, and blue. So if you have Red set to 1, Green set to 0, and Blue set to 1, it would turn Pink... It is just memorization really, and color mixing.
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
27 Oct 2011 07:48 PM
Okay, now I get it, but I still don't get why it shouldn't be RYB.
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
27 Oct 2011 07:49 PM
Wait nvm, I think it's because it's the only way to create black.
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
27 Oct 2011 07:50 PM
RYB = Red, Yellow, Blue

Yellow can be created with Color3.new(1, 1, 0) -- (Red: 1, Green: 1, Blue: 0)

but you can't make Green with Red, Yellow, and Blue...
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
27 Oct 2011 07:54 PM
the reason that roblox uses rgb is because computers combine emitted light to create colors, also known as the additive color system, and the three primary colors for the additive system are red green and blue.

in subtractive color systems (painting i guess), red yellow and blue are the primary colors.
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
27 Oct 2011 07:55 PM
Ok, that's alot clear now, thanks.

~DIE POST DIE!
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
27 Oct 2011 09:55 PM
WOW! I was gonna say the first three posts but NO I WAS TO LATE!
Report Abuse
Rairyu is not online. Rairyu
Joined: 11 Apr 2011
Total Posts: 815
27 Oct 2011 11:20 PM
Well Color3 works in Sparkles, and Smoke, animations, but not like bricks.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
28 Oct 2011 05:11 PM
^
That is untrue

game.Workspace.Part.Color = Color3.new(0, 0, 0)
Report Abuse
Lightmaster9 is not online. Lightmaster9
Joined: 14 May 2009
Total Posts: 8659
28 Oct 2011 05:26 PM
255,255,255 = white

1,1,1 = black
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
28 Oct 2011 05:30 PM
@Lightmaster

0,0,0 is also black...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image