openrndr
0.4.5-dev.4.uncommitted+98ebace
common
openrndr-shape
/
org.openrndr.shape
/
Rectangle
/
Companion
/
fromCenter
from
Center
fun
fromCenter
(
center
:
Vector2
,
width
:
Double
,
height
:
Double
=
width
)
:
Rectangle
(
source
)
Creates a new
Rectangle
by specifying the
center
position with dimensions
width
and
height
.