#X text 8 816 paint() \; \; pd:Class:mouse_down(x \, y) \; pd:Class:mouse_up(x \, y) \; pd:Class:mouse_move(x \, y) \; pd:Class:mouse_drag(x \, y) \; \; -- Functions you can call \; \; pd:Class:repaint() \; \; gfx.set_size(w \, h) \; gfx.set_color(r \, g \, b \, a=1.0) \; \; gfx.fill_ellipse(x \, y \, w \, h) \; gfx.stroke_ellipse(x \, y \, w \, h \, line_width) \; gfx.fill_rect(x \, y \, w \, h) \; gfx.stroke_rect(x \, y \, w \, h \, line_width) \; gfx.fill_rounded_rect(x \, y \, w \, h \, corner_radius) \; gfx.stroke_rounded_rect(x \, y \, w \, h \, corner_radius \, line_width) \; \; gfx.draw_line(x1 \, y1 \, x2 \, y2) \; gfx.draw_text(text \, x \, y \, w \, fontsize) \; \; gfx.start_path(x \, y) \; gfx.line_to(x \, y) \; gfx.quad_to(x1 \, y1 \, x2 \, y2) \; gfx.cubic_to(x1 \, y1 \, x2 \, y2 \, x3 \, y) \; gfx.close_path() \; gfx.stroke_path(line_width) \; gfx.fill_path() \; \; gfx.fill_all() \; \; gfx.translate(tx \, ty) \; gfx.scale(sx \, sy) \; gfx.reset_transform() \;, f 58;
0 commit comments