/* * call-seq: * draw_polygon(points, color) * * Draw a non-solid polygon, given the coordinates of its vertices, in the * order that they are connected. This is essentially a series of connected * dots. See also #draw_polygon_a and #draw_polygon_s. * * This method takes these arguments: * points:: an Array containing the coordinate pairs for each vertex of the * polygon, in the order that they are connected, e.g. * <tt>[ [x1,y1], [x2,y2], ..., [xn,yn] ]</tt>. To draw a closed * shape, the final coordinate pair should match the first. * color:: the color of the shape, [r,g,b,a]. If alpha * is omitted, it is drawn at full opacity. */ VALUE rbgm_draw_polygon(VALUE target, VALUE points, VALUE rgba) { draw_polygon(target,points,rgba,0,0); /* no aa, no fill */ return target; }