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 » Scripters
Home Search
 

Re: Color3.new(#,#,#) Working weirdly.

Previous Thread :: Next Thread 
CrixusOdalisManiatus is not online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
15 Feb 2016 01:41 AM
Ok so, if I were to put
Color3.new(255,230,255)
Color3.new(255,200,255)
--etc...
Color3.new(255,0,255)

It would only show (255,0,255) and the rest would be White.

Why does it do this?



--Notice: This is fore a Gui Text, attempting to make a fade_in-fade_out Nametag for high levels.

Report Abuse
CrixusOdalisManiatus is not online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
15 Feb 2016 01:42 AM
How would I get it to fade in if this way doesn't work?
Report Abuse
gangman67 is not online. gangman67
Joined: 04 Jun 2011
Total Posts: 798
15 Feb 2016 01:43 AM
Color3.new(255/255,230/255,255/255)
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
15 Feb 2016 01:44 AM
I'm not 100% sure WHY/HOW this works, but for GUI's you will need to divide the rgb by 255
The colours work on a scale of 0-1

0 being black, 1 being one

255 works because 255/255 = 1, therefore white.
so...


Color3.new(1,230/255,1)
Color3.new(1,200/255,1)
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
15 Feb 2016 01:44 AM
1 being white*
haha..
Report Abuse
Protoduction is not online. Protoduction
Joined: 27 Jul 2012
Total Posts: 1054
15 Feb 2016 02:02 AM
The user interface handles color3's rgb from 0-255
The scripting interface handles color3's rgb from 0-1

Color3.new(r/255,g/255,b/255)

Yet another inconsistency from ROBLOX...


You're doing it wrong
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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