byte
0 到 255 之间的数值。
类型
number
示例
This example creates two RGB colors.
// How to use bytes to create a color.
// Create RGB colors using bytes in decimal and hexadecimal.
// The resulting color is green, the bytes are measured in decimal numbers:
let rgbColorGreen = Api.RGB(0, 255, 0);
// The resulting color is red, the bytes are measured in hexadecimal numbers:
let rgbColorRed = Api.RGB(0xff, 0, 0);