Search
Preparing search index...
The search index is not available
Brass Engine - v0.17.0dev
Options
All
Public
Public/Protected
All
Inherited
Menu
Brass Engine - v0.17.0dev
lighting/p5MatterLighter
P5MatterLighter
Class P5MatterLighter
Hierarchy
LighterAbstract
P5MatterLighter
Index
Constructors
constructor
Properties
_blur
color
directional
Cache
light
Buffer
resolution
viewpoint
Accessors
blur
light
Canvas
Methods
begin
cast
Directional
Rays
cone
directional
end
fill
find
Directional
Line
Segment
get
Light
Canvas
point
reset
Light
Canvas
simulate
Directional
throw
Begin
Error
world
Constructors
constructor
new
P5
Matter
Lighter
(
options
?:
P5MatterLighterOptions
)
:
P5MatterLighter
Parameters
options:
P5MatterLighterOptions
= {}
Returns
P5MatterLighter
Properties
Private
_blur
_blur
:
number
Private
color
color
:
Color
Private
directional
Cache
directional
Cache
:
Map
<
unknown
,
{
points
:
Vector2
[]
;
time
:
number
}
>
= ...
Private
light
Buffer
light
Buffer
:
P5DrawBuffer
= ...
Protected
resolution
resolution
:
number
Private
viewpoint
viewpoint
:
null
|
ViewpointAbstract
= null
Accessors
blur
get
blur
(
)
:
number
set
blur
(
value
:
number
)
:
void
Returns
number
Parameters
value:
number
Returns
void
light
Canvas
get
lightCanvas
(
)
:
null
|
__module
Returns
null
|
__module
Methods
begin
begin
(
v
?:
ViewpointAbstract
, d
?:
P5Layer
)
:
P5MatterLighter
Parameters
v:
ViewpointAbstract
= ...
d:
P5Layer
= ...
Returns
P5MatterLighter
Private
cast
Directional
Rays
cast
Directional
Rays
(
points
:
Vector2
[]
, paths
:
{
end
:
Vector2
;
start
:
Vector2
}
[]
, options
:
DirectionalOptions
)
:
void
Parameters
points:
Vector2
[]
paths:
{
end
:
Vector2
;
start
:
Vector2
}
[]
options:
DirectionalOptions
Returns
void
cone
cone
(
x
:
number
, y
:
number
, angle
:
number
, width
?:
number
, distance
?:
number
)
:
P5MatterLighter
Parameters
x:
number
y:
number
angle:
number
width:
number
= HALF_PI
distance:
number
= 100
Returns
P5MatterLighter
directional
directional
(
x
:
number
, y
:
number
, radius
:
number
, options
?:
DirectionalOptions
)
:
void
Parameters
x:
number
y:
number
radius:
number
options:
DirectionalOptions
= {}
Returns
void
end
end
(
d
?:
P5Layer
)
:
P5MatterLighter
Parameters
d:
P5Layer
= ...
Returns
P5MatterLighter
fill
fill
(
...
colArgs
:
ColorArgs
)
:
P5MatterLighter
Parameters
Rest
...
colArgs:
ColorArgs
Returns
P5MatterLighter
Private
find
Directional
Line
Segment
find
Directional
Line
Segment
(
U0
:
Vector2
, centerRadius
:
number
, vec
:
Vector2
, rayDirection
:
Vector2
, radius
:
number
, lightInArea
:
boolean
, points
:
Vector2
[]
, paths
:
{
end
:
Vector2
;
start
:
Vector2
}
[]
)
:
void
Parameters
U0:
Vector2
centerRadius:
number
vec:
Vector2
rayDirection:
Vector2
radius:
number
lightInArea:
boolean
points:
Vector2
[]
paths:
{
end
:
Vector2
;
start
:
Vector2
}
[]
Returns
void
Private
get
Light
Canvas
get
Light
Canvas
(
)
:
P5LayerMap
Returns
P5LayerMap
point
point
(
x
:
number
, y
:
number
, r
:
number
)
:
P5MatterLighter
Parameters
x:
number
y:
number
r:
number
Returns
P5MatterLighter
Private
reset
Light
Canvas
reset
Light
Canvas
(
)
:
void
Returns
void
Private
simulate
Directional
simulate
Directional
(
x
:
number
, y
:
number
, radius
:
number
, options
:
DirectionalOptions
)
:
Vector2
[]
Parameters
x:
number
y:
number
radius:
number
options:
DirectionalOptions
Returns
Vector2
[]
Private
throw
Begin
Error
throw
Begin
Error
(
)
:
never
Returns
never
world
world
(
vignette
?:
number
)
:
P5MatterLighter
Parameters
vignette:
number
= 0
Returns
P5MatterLighter
Modules
camera/camera
camera/classic
Viewpoint
camera/viewpoint
camera/viewpoint
Abstract
common/color
common/dynamic
Array
common/fast
Graphics
common/heap
common/pool
common/runtime
Checking
common/types
core/core
core/sketch
core/time
effects/effects
effects/particle
effects/velocity
Particle
input
Mapper
layers/
Layer
Abstract
layers/canvas
Layers
layers/draw
Buffer
layers/draw
Target
layers/handle
Regl
layers/layers
layers/p5
Layers
lighting/lighter
Abstract
lighting/p5
Matter
Lighter
<internal>
loader
main
pathfinder/
Path
Situation
Type
pathfinder/a
Star
Pathfinder
pathfinder/path
Agent
pathfinder/pathfinder
pathfinder/pathfinder
Abstract
physics/body
Abstract
physics/circle
Body
physics/grid
Body
physics/material
Body
Abstract
physics/physics
physics/poly
Body
physics/ray
Body
physics/rect
Body
tilemap/p5
Tilemap
tilemap/tilemap
tilemap/tilemap
Abstract
ui/legacyUI
vector
vector/vector2
P5
Matter
Lighter
constructor
_blur
color
directional
Cache
light
Buffer
resolution
viewpoint
blur
light
Canvas
begin
cast
Directional
Rays
cone
directional
end
fill
find
Directional
Line
Segment
get
Light
Canvas
point
reset
Light
Canvas
simulate
Directional
throw
Begin
Error
world
Generated using
TypeDoc