Divooka Reference

Images

10 nodes

On this page 10

Add Always Layer

Function

A layer always drawn, under the attributes: a body, a base.

Signature
AddAlwaysLayer -> Layered Image
    image: Layered Image
    file: Text
LayeredImage AddAlwaysLayer(LayeredImage image, string file)

Parameters

nametypedefaultdescription
imageLayered Image—
fileText—

Returns

Layered ImageLayered Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Images
Package
Novella Visual Novels

Add Layer Attribute

Function

An attribute and its layer, in a group of which one shows at a time (or several, if the group allows).

Signature
AddLayerAttribute -> Layered Image
    image: Layered Image
    group: Text
    attribute: Text
    file: Text
    isDefault: Truth
    multiple: Truth
    when: Condition
LayeredImage AddLayerAttribute(
    LayeredImage image,
    string group,
    string attribute,
    string file,
    bool isDefault = false,
    bool multiple = false,
    Condition when)

Parameters

nametypedefaultdescription
imageLayered Image—The layered image.
groupText—The group, such as face; made on first use.
attributeText—The attribute lines and shows name, such as smile.
fileText—The layer's image.
isDefaultTruthFalseShown when no attribute of the group is asked for.
multipleTruthFalseLet several attributes of the group show together.
whenCondition—Shown only while this holds; empty always.

Returns

Layered ImageLayered Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Images
Package
Novella Visual Novels

Color Image

Function

A solid colour, filling the screen unless a size is given.

Signature
ColorImage -> Image Source
    color: Text
    width: Integer
    height: Integer
ImageSource ColorImage(
    string color,
    int width = 0,
    int height = 0)

Parameters

nametypedefaultdescription
colorText—
widthInteger0
heightInteger0

Returns

SourceImage Source
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Images
Package
Novella Visual Novels

Composite Image

Function

Images drawn one over another on a canvas: a base and up to two more at offsets.

Signature
CompositeImage -> Image Source
    width: Integer
    height: Integer
    first: Image Source
    second: Image Source
    secondX: Integer
    secondY: Integer
    third: Image Source
    thirdX: Integer
    thirdY: Integer
ImageSource CompositeImage(
    int width,
    int height,
    ImageSource first,
    ImageSource second,
    int secondX = 0,
    int secondY = 0,
    ImageSource third,
    int thirdX = 0,
    int thirdY = 0)

Parameters

nametypedefaultdescription
widthInteger—
heightInteger—
firstImage Source—
secondImage Source—
secondXInteger0
secondYInteger0
thirdImage Source—
thirdXInteger0
thirdYInteger0

Returns

SourceImage Source
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Images
Package
Novella Visual Novels

Filtered Image

Function

An image with filters: zoom, flips, tint, desaturation, brightness, blur and opacity.

Signature
FilteredImage -> Image Source
    source: Image Source
    zoom: Number
    flipHorizontal: Truth
    flipVertical: Truth
    tint: Text
    saturation: Number
    brightness: Number
    blur: Number
    opacity: Number
ImageSource FilteredImage(
    ImageSource source,
    double zoom = 1,
    bool flipHorizontal = false,
    bool flipVertical = false,
    string tint = "",
    double saturation = 1,
    double brightness = 0,
    double blur = 0,
    double opacity = 1)

Parameters

nametypedefaultdescription
sourceImage Source—The image.
zoomNumber1Its scale.
flipHorizontalTruthFalseMirror it left to right.
flipVerticalTruthFalseMirror it top to bottom.
tintText—A colour to multiply it by, such as #ffd0d0; empty for none.
saturationNumber11 keeps colour, 0 is grayscale.
brightnessNumber0Added to each channel, -1 to 1.
blurNumber0A blur radius in pixels.
opacityNumber10 is invisible, 1 is solid.

Returns

SourceImage Source
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Images
Package
Novella Visual Novels

Frame Image

Function

A picture stretched as a nine-patch by borders of its own, in its pixels: its corners kept, its edges and middle stretched to the box it fills. For a style's background, as Ren'Py's Frame.

Signature
FrameImage -> Image Source
    source: Image Source
    left: Number
    top: Number
    right: Number
    bottom: Number
ImageSource FrameImage(
    ImageSource source,
    double left,
    double top,
    double right = 0,
    double bottom = 0)

Parameters

nametypedefaultdescription
sourceImage Source—The picture, such as an Image File.
leftNumber—The left border.
topNumber—The top border.
rightNumber0The right border; 0 takes the left.
bottomNumber0The bottom border; 0 takes the top.

Returns

SourceImage Source
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Images
Package
Novella Visual Novels

Image File

Function

An image file among the game's files.

Signature
ImageFile(path: Text) -> Image Source
ImageSource ImageFile(string path)

Parameters

nametypedefaultdescription
pathText—

Returns

SourceImage Source
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Images
Package
Novella Visual Novels

Movie Image

Function

A video looping as an image, such as rain behind a window.

Signature
MovieImage(path: Text, loop: Truth) -> Image Source
ImageSource MovieImage(string path, bool loop = true)

Parameters

nametypedefaultdescription
pathText—
loopTruthTrue

Returns

SourceImage Source
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Images
Package
Novella Visual Novels

Start Layered Image

Function

A layered image with no layers yet.

Signature
StartLayeredImage(tag: Text) -> Layered Image
LayeredImage StartLayeredImage(string tag)

Parameters

nametypedefaultdescription
tagText—The image tag shows and lines use, such as qinglan.

Returns

Layered ImageLayered Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Images
Package
Novella Visual Novels

Switch Image

Function

An image that is one picture while a condition holds and another otherwise, decided as it is drawn: a room by day and by night.

Signature
SwitchImage -> Image Source
    when: Condition
    then: Image Source
    otherwise: Image Source
ImageSource SwitchImage(
    Condition when,
    ImageSource then,
    ImageSource otherwise)

Parameters

nametypedefaultdescription
whenCondition—
thenImage Source—
otherwiseImage Source—

Returns

SourceImage Source
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Images
Package
Novella Visual Novels