Jump to content

Get color from tocolor?


xXMADEXx

Recommended Posts

local color = tocolor(255, 255, 255, 255) 
  
local red = bitExtract(color, 0, 
local green = bitExtract(color, 8, 
local blue = bitExtract(color, 16, 
local alpha = bitExtract(color, 24, 

(I couldn't use lua tag, because the text got formatted wrong because of '8)')

Link to comment
local color = tocolor(255, 255, 255, 255) 
  
local red = bitExtract(color, 0, 8) 
local green = bitExtract(color, 8, 8) 
local blue = bitExtract(color, 16, 8) 
local alpha = bitExtract(color, 24, 8) 

(I couldn't use lua tag, because the text got formatted wrong because of '8)')

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...