Raised This Month: $ Target: $400
 0% 

Solved Item tint color values?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sreaper
髪を用心
Join Date: Nov 2009
Old 06-08-2013 , 18:42   Item tint color values?
Reply With Quote #1

I noticed for all of the paint cans, their colors are defined like this:

Code:
"name": "set item tint RGB",    
"class": "set_item_tint_rgb",
"value": 15185211.000000
That value would be for Australium Gold. I'd like to use my own colors though. How would I find red, or yellow for example?

Would someone kindly please explain this color format to me?

Last edited by Sreaper; 06-08-2013 at 20:26.
Sreaper is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-08-2013 , 19:12   Re: Item tint color values?
Reply With Quote #2

Have you tried converting that to hexadecimal?
Hint: It's E7B53B in hex.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 06-08-2013 , 19:18   Re: Item tint color values?
Reply With Quote #3

To save you from looking up this color:

http://www.colorpicker.com/?colorcode=E7B53B
__________________
11530 is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 06-08-2013 , 19:24   Re: Item tint color values?
Reply With Quote #4

Thank you both! I understand it now.
Sreaper is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 06-09-2013 , 18:39   Re: Item tint color values?
Reply With Quote #5

Lots of entities take colors as integers as well. There is a pretty easy way you can convert rgb to int with bitwise operators if you end us needing something like that, though i don't remember it offhand, pretty common in c color processing.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 06-10-2013 , 10:24   Re: Item tint color values?
Reply With Quote #6

i think if you want a quick reference, you can use something like this http://www.shodor.org/stella2java/rgbint.html
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode