Divooka Reference

Procedural Flipbook

5 nodes

On this page 5

Make Procedural Flipbook

Function

A 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

nametypedefaultdescription
totalFramesInteger—How many frames there are.
FPSInteger—Frames a second.
routineFunc<Integer, I Pixel Image Sampler>—The function that makes frame n's picture.

Returns

resultProcedural Flipbook
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Procedural Flipbook
Package
Flipbooks

FPS

Function

Frames a second.

Signature
FPS(Procedural Flipbook: Procedural Flipbook) -> Integer
int FPS(ProceduralFlipbook Procedural Flipbook)

Parameters

nametypedefaultdescription
Procedural FlipbookProcedural Flipbook—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Procedural Flipbook
Package
Flipbooks

Frames

Function

How many frames there are.

Signature
Frames(Procedural Flipbook: Procedural Flipbook) -> Integer
int Frames(ProceduralFlipbook Procedural Flipbook)

Parameters

nametypedefaultdescription
Procedural FlipbookProcedural Flipbook—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Procedural Flipbook
Package
Flipbooks

Routine

Function

The 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

nametypedefaultdescription
Procedural FlipbookProcedural Flipbook—

Returns

resultFunc<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

Function

One frame's picture, made now by the routine.

Signature
GetImage -> I Pixel Image Sampler
    Procedural Flipbook: Procedural Flipbook
    frameNumber: Integer
IPixelImageSampler GetImage(
    ProceduralFlipbook Procedural Flipbook,
    int frameNumber)

Parameters

nametypedefaultdescription
Procedural FlipbookProcedural Flipbook—
frameNumberInteger—Which frame, counting from 0.

Returns

ImageI Pixel Image Sampler
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Procedural Flipbook
Package
Flipbooks