Pike v8.0 release 1738

Method GTK1.DrawingArea()->draw_line()


Method draw_line

GTK1.DrawingArea draw_line(GDK1.GC gc, int x1, int y1, int x2, int y2)

Description

img_begin w = GTK1.DrawingArea()->set_usize(100,100); delay: g = GDK1.GC(w)->set_foreground( GDK1.Color(255,0,0) ); delay: for(int x = 0; x<10; x++) w->draw_line(g,x*10,0,100-x*10,99); img_end