This shows you the differences between two versions of the page.
fr:poly [2016/01/01 22:45] |
fr:poly [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Poly ===== | ||
+ | ==== Format ==== | ||
+ | **poly** // | ||
+ | **poly** {x1, y1, x2, y2, x3, y3 ...} | ||
+ | ==== Description ==== | ||
+ | Trace un polygone. | ||
+ | ==== Remarque ==== | ||
+ | Avant la version 0.9.4 il fallait également passer le nombre de sommets en paramètre. | ||
+ | ==== Voir aussi ==== | ||
+ | [[stamp|Stamp]] | ||
+ | ==== Exemple ==== | ||
+ | < | ||
+ | color blue | ||
+ | rect 0,0,300,300 | ||
+ | color green | ||
+ | dim tri(6) | ||
+ | tri = {100, 100, 200, 200, 100, 200} | ||
+ | poly tri | ||
+ | </ | ||
+ | < | ||
+ | color blue | ||
+ | rect 0,0,300,300 | ||
+ | color green | ||
+ | poly {100, 100, 200, 200, 100, 200} | ||
+ | </ | ||
+ | Les deux codes ci-dessus produiront le résultat suivant:\\ | ||
+ | {{: |