#How can I make rainbow text?
19 messages · Page 1 of 1 (latest)
red and blue?
what about green
doesn't work like that.
including green will just overcomplicate things, RB will include all the colors without all the extra steps.
Well you see, that doesn’t work because insert cryptic rant about slerp
Just use an HSV to color
HSV go color is deffo the best way to go
red to blue on lerp would just go red-purple-blue :/
This is the method Cryptic gave me a little while ago, X is the amount of time you want it to take to cycle through the colors
HSV To Color((Time Get Precise Seconds/X)%1), 1, 1)
I hope I used the modulo correctly, never used that in an equation until now
Its significantly cheaper than lerp
that sounds about right
@tardy haven @winter dagger @valid finch
You cannot use Lerp for this, as that is linear
There are 2 ways to do this smoothly
- Custom 3-way color slerp between
#FF0000,#00FF00, and#0000FF HSV to Color, with Saturation 1, Value 1, and a Hue of(Time Get Precise Seconds / Cycle Duration) modulo 1
I would go with the HSV to Color method, as it is much simpler than the slerp method
This image shows the path of Lerp vs HSV to Color/Slerp
The purple represents the path of HSV to Color/Slerp, perfectly rotating around the edge of the color wheel
The black line represents the path of Lerp, going directly to Red, Green, and Blue, while getting bright around Yellow, Cyan, and Magenta, because it gets closer to white along the way
Literally what I said
