Draw a, LCARS elbow polygon. This is a 90-degree rounded corner bend for top left, top right, bottom right and bottom left LCARS corner panels.
lcars_elbow(
xmin,
xmax,
ymin,
ymax,
corner,
width,
height,
ro = width/2,
ri = height/2,
n = 20,
color = "atomic-tangerine",
draw = TRUE
)
numeric, scalar left x position.
numeric, scalar right x position.
numeric, scalar bottom y position.
numeric, scalar top y position.
integer 1:4
or character: "topleft"
, "topright"
,"bottomleft"
,
"bottomright"
. May be abbreviated as "tl"
, "tr"
, "br"
, "bl"
.
numeric, the width of the vertical segment of the bend.
numeric, the height of the horizontal segment of the bend.
radius of the outer rounded corner.
radius of the inner rounded corner.
number of points to define the curve of the inner radial quarter circle. The number of points then used to define the outer curve and extensions of the segments are scaled respectively based on this.
ignored if draw = FALSE
. Can be any color given in hex
format. Named colors must be LCARS colors. See lcarsdata for
options.
draw the corner. Return values if FALSE
.
draws a polygon
plot(0:1, 0:1)
lcars_elbow(0.1, 0.9, 0.6, 0.9, "tl", 0.2, 0.05)