Skip to contents

Create a new color object.

Usage

color(r, g, b, a)

Arguments

r

A non-negative integer. Color red value.

g

A non-negative integer. Color green value.

b

A non-negative integer. Color blue value.

a

A non-negative integer. Color alpha value.

Value

A color

Note

This class has been auto-generated from the following Raylib struct definition:

typedef struct Color {
    unsigned char r;        // Color red value
    unsigned char g;        // Color green value
    unsigned char b;        // Color blue value
    unsigned char a;        // Color alpha value
} Color;