Cherry / 3D2D-Textscreens

3D2D Textscreens Garry's Mod Workshop Addon
https://jross.me/3d2d-textscreens/
MIT License
27 stars 20 forks source link

RGB spectrum cycling (rainbow text) #67

Closed darkmodee closed 3 years ago

darkmodee commented 4 years ago

Hi, made a comment on the Steam Workshop page on Textscreens, I would like this feature to be added: In the color section of the text, make an option where you can make the text cycle through RGB colors (rainbow)

Just another thought adding onto color changing, possibly add a gradient color option, too. More colors with the text would open up way more possibilities especially for servers like DarkRP and servers using text-screens to give info to players and make it pop.

Cherry commented 4 years ago

Thanks for the suggestion! I'd welcome a PR for this, but am unlikely to be able to get to this myself in the near future.

FrezZyyy commented 4 years ago

@Cherry i actually have an edit where rainbow is an option for textscreens if you wanna take a look at it

Cherry commented 4 years ago

@FrezZyyy If you'd like to submit a PR with these changes, I'd be happy to take a look!

KingChris23 commented 3 years ago

@FrezZyyy Is there anyway I could test the edit for my darkrp server?

KennyHarrer commented 3 years ago

Make a per line toggle convar? ex. textscreen_line1_rainbow = 1/0 then you can use hsv and curtime for the rainbow effect

KennyHarrer commented 3 years ago
local rainbowSpeed = 100
HSVToColor( CurTime() * rainbowSpeed % 360, 1, 1 )

Here is an example of the aforementioned HSV

KingChris23 commented 3 years ago

@KennyHarrer Where would i put this?

KennyHarrer commented 3 years ago

@KingChris23 You don't put it anywhere. That simply returns a rainbow color. That code was supposed to help @Cherry implement the rainbow (if he decides to).

TomDotBat commented 3 years ago

https://github.com/TomDotBat/3D2D-Textscreens My version of TextScreens has HSV and donator restrictions built into it (config here). I haven't made it into a PR due to some of the major changes made in my version such as the entity class name change and perma system removal. So only use mine if you're aware of the affect it will have.

Cherry commented 3 years ago

TomDotBat/3D2D-Textscreens My version of TextScreens has HSV and donator restrictions built into it (config here). I haven't made it into a PR due to some of the major changes made in my version such as the entity class name change and perma system removal. So only use mine if you're aware of the affect it will have.

This is awesome! If you do find a way to PR any of the useful bits and pieces in your fork, that would be fantastic.

Cherry commented 3 years ago

Added in #73 thanks to @TomDotBat 🎉