arcDeg

arcDeg( )

Description
Draws an arc in degrees

Syntax
arcDeg(x, y, w, h, start, stop) 

Parameters
  x : x-coordinate
  y : y-coordinate

  w : width
  h : height

 start :  angle to start the arc  in degree
 stop :  angle to stop the arc  in degree

Usages

start (6 o'clock = 0)  clockwise
start (6 o'clock = 0),   stop (10 o'clock = 120)

* coordination of degree

                           180
                             |
                90   ------------  270
                             |
                            0

arcDeg(200, 200, 100, 100, 0, 120)


Examples in arduino

#include "AppGosu.h"
AppGosu app;


void  setup() {

     app.start();
     app.clearAll();


     app.fill(250, 170, 50);
     app.arcDeg(200, 200, 100, 100, 0, 120);


}

void loop() {

}



Examples in other MCU

printf("arcDeg(200, 200, 100, 100, 0, 120);");     

















from AppGosu
-----------------------------------------

No comments: