openrndr
Toggle table of contents
0.4.5-dev.17.uncommitted+81afe70
common
Platform filter
common
Switch theme
Search in API
openrndr
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
.