../
kernel
functions
add
all
apply_delta
assert
atan2
btn
btnp
camera
cd
char
chooser
circ
circfill
clip
cls
color
cos
count
cp
create_delta
create_gui
create_process
cursor
date
del
deli
env
error
exit
fetch
fetch_metadata
fget
fillp
foreach
fset
fstat
fullpath
get_clipboard
get_display
get_draw_target
get_spr
include
input
key
keyp
line
ls
map
max
memcpy
memmap
memset
menuitem
mget
mkdir
mouse
mouselock
mset
music
mv
note
on_event
open
oval
ovalfill
peek
peek2
peek4
peek8
peektext
pget
pid
pod
poke
poke2
poke4
poke8
printh
pset
pwd
readtext
rect
rectfill
rm
rrect
rrectfill
scoresub
send_message
set_clipboard
set_draw_target
set_spr
sfx
sin
socket
split
spr
sspr
stat
stop
store
store_metadata
sub
time
tokenoid
type
unmap
unpod
userdata
vec
vid
window
rrect(x,y,width,height,radius,[col])
Overview
rrect draws a rounded rectangle with corners at x,y with a width of width and height of height. The radius of the rectangle is radius.
For drawing normal rectangles, use rect.
For drawing filled rounded rectangles, use rrectfill.
Arguments
x: number
The x-coordinate of the rounded rectangle
y: number
The y-coordinate of the rounded rectangle
width: number
The width of the rounded rectangle; must be more than 0
height: number
The height of the rounded rectangle; must be more than 0
radius: number
The radius of the rounded rectangle; defaults to 0.
The radius is clamped to min(width,height)/2
[col]: number
The color of the rectangle; defaults to the last used color.