Skip to contents

Draw a polygon and annotate it with ID

Usage

ca_img_draw_polygon(
  center_x,
  center_y,
  size,
  border = "red",
  col,
  lwd = 4,
  scale
)

Arguments

center_x, center_y

int coordinates of the centre of the polygon

size

int size of the polygon

border

chr Polygon outline color

col

chr Color to use if plotting filled polygons. The format is #RRGGBBAA where AA is the alpha channel for transparency

lwd

int Polygon outline line width

scale

double Scaling factor if the image is not rendered full size