triangle( )
Description
Draws a triangle
Syntax
triangle(x1, y1, x2, y2, x3, y3)
Parameters
x1 : x-coordinate of the first point
y1 : y-coordinate of the first point
x2 : x-coordinate of the second point
y2 : y-coordinate of the second point
x3 : x-coordinate of the third point
y3 : y-coordinate of the third point
Usages
Draw a triangle
(x1, y1) (200, 100)
(x2, y2) (x3, y3) (100, 200) (300,200)
triangle(200, 100, 100, 200, 300, 200)
Examples in arduino
#include "AppGosu.h"
AppGosu app;
void setup() {
app.start();
app.clearAll();
app.triangle(200, 100, 100, 200, 300, 200);
}
void loop() {
}
Examples in other MCU
printf("triangle(200,100,100,200,300,200);");
from AppGosu
-----------------------------------------
No comments:
Post a Comment