當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Arduino ArduinoGraphics - set()用法及代碼示例

說明

設置像素的顏色值。

用法

YourScreen.set(x, y, r, g, b)
YourScreen.set(x, y, color)

參數

x:像素的 x 位置 y:像素的 y 位置 r:紅色值 (0 - 255) g:綠色值 (0 - 255) b:藍色值 (0 - 255) 顏色:24 位 RGB顏色,0xrrggbb

返回

示例

YourScreen.beginDraw();
YourScreen.point(1, 1, 0, 255, 0);
YourScreen.endDraw();

相關用法


注:本文由純淨天空篩選整理自arduino.cc大神的英文原創作品 ArduinoGraphics - set()。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。