// draw a rectangle in the center of screen
screen.line(screen.width()/2-5, screen.height()/2-5, 10, 10);
// draw a rectangle in the center of screen
screen.rect(screen.width()/2-5, screen.height()/2-5, 10, 10);
This issue also occurs on the constructor reference page which is reported in addition to other issues with that page here: #8
On all these pages:
https://www.arduino.cc/en/Reference/TFTNoStroke
https://www.arduino.cc/en/Reference/TFTNoFill
https://www.arduino.cc/en/Reference/TFTWidth
https://www.arduino.cc/en/Reference/TFTHeight
Change:
to:
Reference the example code in https://www.arduino.cc/en/Reference/TFTRect
Originally reported at http://forum.arduino.cc/index.php?topic=494624
This issue also occurs on the constructor reference page which is reported in addition to other issues with that page here: #8