aboutsummaryrefslogtreecommitdiff
path: root/semestre 2/informatique/tme/semaine2/09_lib_graphique.c
diff options
context:
space:
mode:
Diffstat (limited to 'semestre 2/informatique/tme/semaine2/09_lib_graphique.c')
-rw-r--r--semestre 2/informatique/tme/semaine2/09_lib_graphique.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/semestre 2/informatique/tme/semaine2/09_lib_graphique.c b/semestre 2/informatique/tme/semaine2/09_lib_graphique.c
new file mode 100644
index 0000000..d90845e
--- /dev/null
+++ b/semestre 2/informatique/tme/semaine2/09_lib_graphique.c
@@ -0,0 +1,15 @@
+#include <cini.h>
+
+void diagonale(int x){
+ for (int i = 0; i <= x; i++) {
+ CINI_draw_pixel(i, i, "orange");
+ }
+}
+
+int main(){
+ CINI_open_window(400, 300, "hello world");
+ diagonale(200);
+ CINI_loop();
+
+ return 0;
+}