Class FlowMap
Constructors
constructor
-
Create a new flow map.
Parameters
- width: number
defines the width of the flow map
- height: number
defines the height of the flow map
- data: Uint8ClampedArray
defines the data of the flow map
Returns FlowMap
- width: number
Properties
Readonlydata
data: Uint8ClampedArray
defines the data of the flow map
Readonlyheight
height: number
defines the height of the flow map
Readonlywidth
width: number
defines the width of the flow map
Methods
process Flowable
StaticExtract From Texture Async
-
Load from a texture
Parameters
- texture: Texture
defines the source texture
Returns Promise<FlowMap>
a promise fulfilled when image data is loaded
- texture: Texture
StaticFrom Url Async
-
Creates a FlowMap from a url.
Parameters
- url: string
The url of the image to load
Returns Promise<FlowMap>
a promise that resolves to a FlowMap object
- url: string
Class used to represent a particle flow map. #5DM02T#7 GPUParts: #5DM02T#12 (webgl2) GPUParts: #5DM02T#13 (webgpu)