Skip to contents

Draw triangle within an image. Modifies the image in place.

Usage

image_draw_triangle(dst, v1, v2, v3, color)

Arguments

dst

An image.

v1

A numeric vector of length 2.

v2

A numeric vector of length 2.

v3

A numeric vector of length 2.

color

A color.

Examples

if (FALSE) {
img <- gen_image_color(200, 200, "white")
image_draw_triangle(img, c(100, 10), c(10, 190), c(190, 190), "blue")
}