<Graphics.h> virtual Library
The Graphics library is a virtual library that can simulate real world graphics. For example, in the folder _Sim Test\99f , there is a sketch called UTFT... ino which uses the UTFT or Universal TFT colour LCD display library. SInce it is difficult to simulate a fhigh level LCD controller like the SSD1289 in real-life, the virtual grpahics library makes this much easier. Simply define the Graphics library to have the left,top,width, and height and then the brush and pen colors.
//UTFT myGLCD(SSD1289,11,13,10,8,9);
Graphics myGLCD(10,10,320,240,0xffffff,0xffffff);
brushColor(col)
circle(x,y,r) // draw a filled circle
clear() or clrScr()
drawCircle(x,y,r) // draw an outline of a circle
drawPixel(x,y,col)
drawRect(x,y,w,h)
drawRoundRect
fillCircle(x,y,r)// draw a filled circle
fillRect(x,y,w,h)
fillRoundRect(x,y,w,h,r)
fillScr(R,G,B)
InitLCD() // dummy routine (does nothing at this stage)
line or drawLine(x,y,x2,y2)
penWidth(width)
penColor(col)
pixel or drawPixel(x,y,col)
print(x,y,s) // print a line of text
printNumI(x,y,i)
rectangle(x,y,w,h)
roundRect(x,y,w,h,r)
setBackColor(R,G,B)
setColor(R,G,B)
setFont(size)
text(x,y,s) // print a line of text
textSize(size)
//textWidth
textColor(col) // set the pen colour to col