polygon?

Category: Image procedures

Documentation

;;; (polygon? img) -> boolean?
;;;   image : image?
;;; Determines whether `img` is a polygon.

Examples

> (polygon? (outlined-polygon (list (pt 10 10) (pt 20 30) (pt 15 40)) "red" 3))
#t
> (polygon? (solid-square 40 "blue"))
#t
> (polygon? (solid-ellipse 40 20 "red"))
#f

Tests

Forthcoming

See also

Forthcoming

Questions

Forthcoming