Color Get

STD Library
दोनों तरफ
क्राफ्टलैंड स्टूडियो मोबाइल और पीसी दोनों पर उपलब्ध है

Construct a color value with a fixed transparency of decimal 255. First, convert the channel to a binary number, with each 8 bits representing a channel. Concatenate the numbers according to R, G, B, and transparency, and then convert the binary number to

डिक्लेरेशन

func ColorGet(r int, g int, b int) Color
go

पैरामीटर्स

इनपुट

नाम टाइप विवरण
R Int The red channel value of the color, the value range is [0,255], if it exceeds the range, it will be clamped to a legal value
G Int The green channel value of the color, the value range is [0,255]. If it exceeds the range, it will be clamped to a legal value.
B Int The blue channel value of the color, the value range is [0,255]. If it exceeds the range, it will be clamped to a legal value.

वापस

टाइप विवरण
Color Constructed color value