Procedural Flipbook
5 nodes
On this page 5
Make Procedural Flipbook
FunctionA flipbook of so many frames, each made by a function of its number when it is asked for.
Signature
ProceduralFlipbook -> Procedural Flipbook
totalFrames: Integer
FPS: Integer
routine: Func<Integer, I Pixel Image Sampler>ProceduralFlipbook ProceduralFlipbook(
int totalFrames,
int fps,
Func<int, IPixelImageSampler> routine)Parameters
| name | type | default | description |
|---|---|---|---|
| totalFrames | Integer | — | How many frames there are. |
| FPS | Integer | — | Frames a second. |
| routine | Func<Integer, I Pixel Image Sampler> | — | The function that makes frame n's picture. |
Returns
| result | Procedural Flipbook |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Procedural Flipbook
- Package
- Flipbooks
FPS
FunctionFrames a second.
Signature
FPS(Procedural Flipbook: Procedural Flipbook) -> Integer
int FPS(ProceduralFlipbook Procedural Flipbook)
Parameters
| name | type | default | description |
|---|---|---|---|
| Procedural Flipbook | Procedural Flipbook | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Procedural Flipbook
- Package
- Flipbooks
Frames
FunctionHow many frames there are.
Signature
Frames(Procedural Flipbook: Procedural Flipbook) -> Integer
int Frames(ProceduralFlipbook Procedural Flipbook)
Parameters
| name | type | default | description |
|---|---|---|---|
| Procedural Flipbook | Procedural Flipbook | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Procedural Flipbook
- Package
- Flipbooks
Routine
FunctionThe function that makes a frame's picture from its number.
Signature
Routine(Procedural Flipbook: Procedural Flipbook) -> Func<Integer, I Pixel Image Sampler>
Func<int, IPixelImageSampler> Routine(ProceduralFlipbook Procedural Flipbook)
Parameters
| name | type | default | description |
|---|---|---|---|
| Procedural Flipbook | Procedural Flipbook | — |
Returns
| result | Func<Integer, I Pixel Image Sampler> |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Procedural Flipbook
- Package
- Flipbooks
Get Image
FunctionOne frame's picture, made now by the routine.
Signature
GetImage -> I Pixel Image Sampler
Procedural Flipbook: Procedural Flipbook
frameNumber: IntegerIPixelImageSampler GetImage(
ProceduralFlipbook Procedural Flipbook,
int frameNumber)Parameters
| name | type | default | description |
|---|---|---|---|
| Procedural Flipbook | Procedural Flipbook | — | |
| frameNumber | Integer | — | Which frame, counting from 0. |
Returns
| Image | I Pixel Image Sampler |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Procedural Flipbook
- Package
- Flipbooks