Last updated 4 years ago
Was this helpful?
Draw a solid rectangle from top left corner (x,y) of specified width and height
@status current Introduced in 2.0.0
x,y (positive numbers) top left corner position
x,y
w (number) width in pixels
w
h (number) height in pixels
h
flags (unsigned number) drawing flags
flags
none
local function run() lcd.clear() lcd.drawText(10,22,"drawFilledRectangle()",DBLSIZE) lcd.drawFilledRectangle(5, 5, 103, 50, GREY_DEFAULT) lcd.drawFilledRectangle(152, 33, 50, 25, SOLID) end return{run=run}