This shows you the differences between two versions of the page.
en:stamp [2016/11/07 12:10] admin |
en:stamp [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Stamp (Statement) ===== | ||
- | ==== Format ==== | ||
- | **stamp** [[numericexpressions|x_position]], | ||
- | **stamp** ( [[numericexpressions|x_position]], | ||
- | **stamp** [[numericexpressions|x_position]], | ||
- | **stamp** ( [[numericexpressions|x_position]], | ||
- | **stamp** [[numericexpressions|x_position]], | ||
- | **stamp** ( [[numericexpressions|x_position]], | ||
- | **stamp** [[numericexpressions|x_position]], | ||
- | **stamp** ( [[numericexpressions|x_position]], | ||
- | **stamp** [[numericexpressions|x_position]], | ||
- | **stamp** ( [[numericexpressions|x_position]], | ||
- | **stamp** [[numericexpressions|x_position]], | ||
- | **stamp** ( [[numericexpressions|x_position]], | ||
- | **stamp** [[numericexpressions|x_position]], | ||
- | **stamp** ( [[numericexpressions|x_position]], | ||
- | **stamp** [[numericexpressions|x_position]], | ||
- | **stamp** ([[numericexpressions|x_position]], | ||
- | **stamp** [[numericexpressions|x_position]], | ||
- | **stamp** ([[numericexpressions|x_position]], | ||
- | |||
- | ==== Description ==== | ||
- | Draws a polygon. | ||
- | |||
- | One dimensional arrays and lists must have at least six values and an even number of values. | ||
- | |||
- | |||
- | ==== Description ==== | ||
- | Draws a polygon with top left corner (origin) at x, y. Optionally scales size of polygon by the defined scale (1=normal size). Also optionally rotates the polygon by a specified angle around the origin (clockwise in radians). | ||
- | |||
- | ==== Example ==== | ||
- | Both of the code blocks below will draw a pair of green triangles on the graphics window: | ||
- | < | ||
- | clg blue | ||
- | rect 0,0,300,300 | ||
- | color green | ||
- | tri = {{0, 0}, {100, 100}, {0, 100}} | ||
- | # stamp the triangle at 0,0 (full size) | ||
- | stamp 100, 100, tri[] | ||
- | # stamp the triangle at 200,100 (half size) | ||
- | stamp 200, 100, .5, tri[] | ||
- | </ | ||
- | < | ||
- | clg blue | ||
- | rect 0,0,300,300 | ||
- | color green | ||
- | # stamp the triangle at 0,0 (full size) | ||
- | stamp 100, 100, {{0, 0}, {100, 100}, {0, 100}} | ||
- | # stamp the triangle at 200,100 (half size) | ||
- | stamp 200, 100, .5, {0, 0, 100, 100, 0, 100} | ||
- | </ | ||
- | Both programs will draw:\\ | ||
- | {{: | ||
- | |||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.4|New To Version| | ||
- | |1.99.99.55|two dimensional list support was added| | ||
- | |1.99.99.72|added required [] to passing variable array| | ||