Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getNewColors(oldState,newState)
- local ret = {}
- if oldState ~= newState then
- for i=1,16,1 do
- local bit = bit.blshift(1,i-1)
- if not bit.band(bit,newState) and bit.band(bit,oldState) then table.insert(ret,bit) end
- end
- end
- end
- return ret
- end
Advertisement
Add Comment
Please, Sign In to add comment