210
219
let ellipse ~fill draw_st group pos w h =
211
220
let((x1,y1), (x2,y2)) = XDot.bounding_box pos w h in
213
222
let ellip = GnoCanvas.ellipse group ~x1 ~y1 ~x2 ~y2 ~props in
214
223
new shape ~fill (SEllipse ellip) props
216
225
let polygon ~fill draw_st group pts =
224
227
let points = flatten_points pts in
225
228
let poly = GnoCanvas.polygon group ~points ~props in
226
229
new shape ~fill (SPolygon poly) props