From 7d7bcf99550b1472d0b6ce45fd00688173b00551 Mon Sep 17 00:00:00 2001 From: sup39 Date: Tue, 1 Mar 2022 18:19:35 +0900 Subject: [PATCH] add stdlib-sup39/draw.sun --- stdlib-sup39/draw.sun | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 stdlib-sup39/draw.sun diff --git a/stdlib-sup39/draw.sun b/stdlib-sup39/draw.sun new file mode 100644 index 0000000..93ce631 --- /dev/null +++ b/stdlib-sup39/draw.sun @@ -0,0 +1,20 @@ +builtin drawText(x, y, size, colorTop, colorBot, fmt, ...); + +// drawNgon(fill, stroke, n, angle=0) +builtin drawNgon(fill, stroke, n, ...); + +// setMTX(dst) +// setMTX(dst, src) +// setMTX(dst, src, dx, dy) +// setMTX(dst, src, SS, dx, dy) +// setMTX(dst, src, xx, yy, dx, dy) +// setMTX(dst, src, xx, xy, yx, yy, dx, dy) +builtin setMTX(dst, ...); +var const MTX_LOADIMM = 0; +var const MTX_NEW = 0; + +builtin drawRect(fill, stroke, x0, y0, x1, y1); +var const FILL_NONE = 0; +var const STROKE_NONE = 0; + +builtin setLineWidth(lw);