func NewCursorFromImages(images []CursorImage) (*Cursor, error) {
	cursor := &Cursor{}

	for _, img := range images {
		if err := cursor.addImage(img.Image, img.HotSpot); err != nil {
			return nil, err
		}
	}

	return cursor, nil
}
// NewCursorFromImages makes a cursor from a list of images and hot spots.
NewCursorFromImages makes a cursor from a list of images and hot spots.
// NewCursorFromImages makes a cursor from a list of images and hot spots .
func NewCursorFromImages(images []CursorImage) (*Cursor, error) {
	cursor := &Cursor{}
	for _, img := range images {
		if err := cursor.addImage(img.Image, img.HotSpot); err != nil {
			return nil, err
		}
	}
	return cursor, nil
}
func NewCursorFromImages ( images [ ] CursorImage ) ( * Cursor , error ) { cursor := & Cursor { } for _ , img := range images { if err := cursor . addImage ( img . Image , img . HotSpot ) ; err != nil { return nil , err } } return cursor , nil }
NewCursorFromImages makes a cursor from a list of images and hot spots.
NewCursorFromImages makes a cursor from a list of images and hot spots .