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
 

Is this color3 right?

Previous Thread :: Next Thread 
Kilometerz is not online. Kilometerz
Joined: 20 Sep 2012
Total Posts: 2666
01 Aug 2014 01:10 AM
script.Parent.Frame.PlayerStats.HP.TextColor3 = Color3.new(177, 255, 194)


Just turning white
Report Abuse
Juddily is not online. Juddily
Joined: 24 Aug 2008
Total Posts: 4243
01 Aug 2014 01:11 AM
script.Parent.Frame.PlayerStats.HP.TextColor3 = Color3.new(177/255, 255/255, 194/255)
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
01 Aug 2014 01:11 AM
Counter-intuitively, Color3s store components as fractions of 255 rather than integers.

Color3.new(177/255, 255/255, 194/255)

Is what you want.
Report Abuse
Kilometerz is not online. Kilometerz
Joined: 20 Sep 2012
Total Posts: 2666
01 Aug 2014 01:21 AM
How do I know the other half
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
01 Aug 2014 01:22 AM
I don't understand what you mean.
Report Abuse
Kilometerz is not online. Kilometerz
Joined: 20 Sep 2012
Total Posts: 2666
01 Aug 2014 01:22 AM
Where do you get the fraction from
Report Abuse
Kilometerz is not online. Kilometerz
Joined: 20 Sep 2012
Total Posts: 2666
01 Aug 2014 01:24 AM
Never mind, I understand.
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
01 Aug 2014 01:26 AM
We get the fraction from the fact that there are only 256 possible values for each color in each pixel.

This gives 256^3 = 16777216 possible combinations which is slightly more different colors than the eye can differentiate.
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