Kaplay.Rect
Modules
Comp
Types
rectOptions
type rectOptions = {radius?: float, fill?: bool}
Fields
radius option < float >
fill option < bool >
Values
addRectComponent
let addRect: ( Kaplay.Context.t, float, float, ~options: rectOptions=?,) => Kaplay.Types.comp
Return type
getHeight
let getHeight: T.t => float
Parameters
T.t
Return type
float
getWidth
let getWidth: T.t => float
Parameters
T.t
Return type
float
setHeight
let setHeight: (T.t, float) => unit
Parameters
T.t
float
Return type
unit
setWidth
let setWidth: (T.t, float) => unit
Parameters
T.t
float
Return type
unit