Retrieves colors's red channel value.
[int value] color:getR()
local cColor = vEngine.color.create(255, 0, 0, 255) --Creates red color local channelColor = cColor:getR() --Retrieves red channel's value print(channelColor) --Prints our channel's value
Last updated 2 years ago