gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/canvas.h')
-rw-r--r--agg-plot/canvas.h 6
1 files changed, 6 insertions, 0 deletions
diff --git a/agg-plot/canvas.h b/agg-plot/canvas.h
index 25a1e258..f5304bec 100644
--- a/agg-plot/canvas.h
+++ b/agg-plot/canvas.h
@@ -75,6 +75,12 @@ public:
void clear() { rb.clear(bg_color); };
+ void clear_box(int x1, int y1, int width, int height)
+ {
+ for (int y = y1; y < y1 + height; y++)
+ rb.copy_hline (x1, y, x1 + width, bg_color);
+ };
+
template<class VertexSource>
void draw(VertexSource& vs, agg::rgba8 c)
{
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月20日 17:28:43 +0000

AltStyle によって変換されたページ (->オリジナル) /