Skip to main content

Function: box()

box(t1, p1, t2, p2, fill, border?, borderWidth?, id?): void

Rectangle from (t1,p1) to (t2,p2). borderWidth > 0 draws a border in border; borderWidth = 0 (default) leaves the box borderless.

Parameters​

t1​

i64

p1​

f64

t2​

i64

p2​

f64

fill​

i32

border?​

i32 = 0

borderWidth?​

i32 = 0

id?​

string = ""

Returns​

void