tModLoader [SOLVED] How do I set animated rarity colours?

SiriusIlluminati

Terrarian
Hey there!
I want to make an animated rarity (similar to vanilla's master mode rarity), so I took the code for it from ExampleMod.
Unfortunately, I have no idea how to use DiscoR, G and B. Is there a way to make the rarity cycle between three specific colours?

Here's the current code:
1714136873837.png


I'd greatly appreciate any help!
 
Last edited:
Hey there!
I want to make an animated rarity (similar to vanilla's master mode rarity), so I took the code for it from ExampleMod.
Unfortunately, I have no idea how to use DiscoR, G and B. Is there a way to make the rarity cycle between three specific colours?

Here's the current code:
View attachment 467532

I'd greatly appreciate any help!
 
No, remove new Color before Color.Lerp
 
Back
Top Bottom