绘制过渡色横线

支持芯片: SHMICTRL系列芯片 ESP32-S3系列

void gradlineh(int x,int y,int x2,int color1,int color2,int wn);
//(x,y):过渡色线中心点左侧起点坐标
//x2: 右侧结束点x坐标
//color1:过渡色起始颜色值
//color2:过渡色结束颜色值
//wn:线的宽度

示例

gradlineh(10,20,150,0xf800,0,15);

效果: