跳到主要内容

颜色结构体

在 HiEasyX 中,颜色对象是指 HXColor 对象HXColor 对象定义在 include/impl/hex_impl.h 下。大致定义如下:

struct HXBuffer {
HXColInt R;
HXColInt G;
HXColInt B;
HXColInt A;
};

using HXColor = HXBuffer;
变量含义默认取值
R颜色的 R 分量
G颜色的 B 分量
B颜色的 G 分量
A颜色的 A 分量

在 HiEasyX 中用 HXColor 表示颜色,HXColorHXBuffer 的别名。