fluid.types

Undocumented in source.

Members

Aliases

Color
alias Color = raylib.Color
Undocumented in source.
Rectangle
alias Rectangle = raylib.Rectangle
Undocumented in source.
Vector2
alias Vector2 = raylib.Vector2
Undocumented in source.

Functions

alphaBlend
deprecated Color alphaBlend(Color bottom, Color top)

Blend two colors together; apply top on top of the bottom color. If top has maximum alpha, returns top. If alpha is zero, returns bottom.

color
Color color(ubyte r, ubyte g, ubyte b, ubyte a)

Create a color from RGBA values.

color
Color color()
Color color(string hexCode)

Create a color from hex code.

multiply
Color multiply(Color a, Color b)

Multiple color values.

setAlpha
Color setAlpha(Color color, float alpha)

Set the alpha channel for the given color, as a float.

setAlpha
Color setAlpha(Color , int )
Undocumented in source. Be warned that the author may not have intended to support it.
setAlpha
Color setAlpha(Color color, ubyte alpha)

Set the alpha channel for the given color, as a float.

toHex
string toHex(Color color)

Get a hex code from color.

Static functions

generateAlphaMask
Image generateAlphaMask(int width, int height, ubyte value)

Generate an alpha mask filled with given value.

generateColorImage
Image generateColorImage(int width, int height, Color color)

Generate an image filled with a given color.

generatePalettedImage
Image generatePalettedImage(int width, int height, ubyte alpha)

Generate a paletted image filled with 0-index pixels of given alpha value.

Structs

Color
struct Color
Undocumented in source.
Image
struct Image

Image available to the CPU.

PalettedColor
struct PalettedColor

A paletted pixel, for use in palettedAlpha images; Stores images using an index into a palette, along with an alpha value.

Rectangle
struct Rectangle
Undocumented in source.
Vector2
struct Vector2
Undocumented in source.

Meta