fill

fill( )

Description
Set the color of graphics. (rect, ellipse, triangle, arcDeg, text)

Syntax

fill(r,  g, b) 

Parameters
  r : red (0~255)
  g : green(0~255)
  b : blue(0~255)

Usages
fill(255, 0, 0);    // red color
fill(0, 255, 0);    // green color
fill(0, 0, 255);    // blue color




Examples in arduino

#include "AppGosu.h"
AppGosu app;

void  setup() {
     app.start();
     app.clearAll();

     app.fill(255,255,0);   // yellow
     app.rect(100, 400, 100, 200);


}
void loop() {

}



Examples in other MCU 


printf("fill(255,170,50);");






























by  AppGosu --------------------------------------------------------

No comments: