Color

    A color represented in RGBA format.

    Color.swift:21
    struct Color

    A color represented in RGBA format by a red (r), green (g), blue (b), and alpha (a) component. Each component is a 32-bit floating-point value, usually ranging from 0.0 to 1.0. Some properties (such as modulate) may support values greater than 1.0, for overbright or HDR (High Dynamic Range) colors.

    Colors can be created in various ways: By the various Color constructors, by static methods such as fromHsv(h:s:v:alpha:), and by using a name from the set of standardized colors based on X11 color names with the addition of TRANSPARENT. GDScript also provides @GDScript.Color8, which uses integers from 0 to 255 and doesn’t support overbright colors.

    Color constants cheatsheet

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features