Preparing search index...
The search index is not available
JSGL - v1.0.9
JSGL - v1.0.9
Clamp
Function Clamp
Clamp
(
a
:
number
, min
:
number
, max
:
number
)
:
number
Clamps number between min and max
Returns
Clamped number
Parameters
a:
number
Value to clamp
min:
number
The minimum value
max:
number
The maximum value
Returns
number
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
JSGL -
v1.0.9
Rotation
Style
Rotation
Type
Shape
Type
Clickable
Game
Object
Default
Game
Drawable
Game
Object
ExampleHTML
Game
Game
Object
Input
Renderer
Rotation
Shape
Signals
Simple
Shape
Simple
Sprite
Sprite
Transform
Vector2
Draw
Event
Draw
Settings
Game
Event
Game
Mouse
Event
Game
Object
Destroy
Event
Game
Object
Spawn
Event
Game
Settings
Game
Start
Event
Resource
Resource
Type
Rotation
Value
Shadow
Tick
Event
author
default
Draw
Settings
default
Game
Settings
license
Clamp
Clamp01
Inverted
Lerp
Is
In
Range
Lerp
Random
In
Range
Range
error
floor
log
msg
warn
Clamps number between min and max
Returns
Clamped number