Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


change CEPanel1 color luminosity

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
HexaG0n
Advanced Cheater
Reputation: 0

Joined: 29 Mar 2021
Posts: 64

PostPosted: Tue Jun 22, 2021 11:40 pm    Post subject: change CEPanel1 color luminosity Reply with quote

how do i increase/decrease panel luminosity or saturation, hue etc?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25295
Location: The netherlands

PostPosted: Tue Jun 22, 2021 11:45 pm    Post subject: Reply with quote

convert rgb to hsl
adjust hsl
and then convert hsl back to rgb

https://gist.github.com/ilya-pi/8409654 rgb2hsl

https://gist.github.com/ilya-pi/8409645 hsl2rgb

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
HexaG0n
Advanced Cheater
Reputation: 0

Joined: 29 Mar 2021
Posts: 64

PostPosted: Wed Jun 23, 2021 12:01 am    Post subject: Reply with quote

Dark Byte wrote:
convert rgb to hsl
adjust hsl
and then convert hsl back to rgb

https://gist.github.com/ilya-pi/8409654 rgb2hsl

https://gist.github.com/ilya-pi/8409645 hsl2rgb


what about the color like $005959FF? how do i get the rgb? im actually trying to make those buttons where they smoothly get darker or lighter
Back to top
View user's profile Send private message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 189

PostPosted: Fri Jun 25, 2021 8:07 am    Post subject: Reply with quote

Dark Byte wrote:
convert rgb to hsl
adjust hsl
and then convert hsl back to rgb
Can transparency be changed? 50% or 30%
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25295
Location: The netherlands

PostPosted: Fri Jun 25, 2021 10:42 am    Post subject: Reply with quote

only on windows, not on panels/components
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites