Raised This Month: $51 Target: $400
 12% 

Fading from one color to another smootly on a entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xfusionlockx
AlliedModders Donor
Join Date: Aug 2014
Old 01-24-2018 , 02:13   Fading from one color to another smootly on a entity
Reply With Quote #1

I've tried everything I can think of and it's still not working. Does anyone know how to do this?
xfusionlockx is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 01-24-2018 , 04:45   Re: Fading from one color to another smootly on a entity
Reply With Quote #2

I made an include for stuff like this: https://forums.alliedmods.net/showthread.php?p=2565348
You can interpolate between 2 colours easily in either RGB or HSV space, although I recommend doing in HSV then converting back to RGB since it's much prettier.
You feed the interpolation function 2 colours and a t value between 0.0 and 1.0, 0.0 would be full first colour and 1.0 would be full second colour. You gradually increase this t value, and it'll give you the colours in between you're looking for.
hmmmmm 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 04:08.


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