struct ImColor

Overview

#include <imgui.h>

struct ImColor
{
    // fields

    ImVec4 Value;

    // construction

    ImColor();

    ImColor(
        float r,
        float g,
        float b,
        float a = 1.0f
        );

    ImColor(const ImVec4& col);

    ImColor(
        int r,
        int g,
        int b,
        int a = 255
        );

    ImColor(ImU32 rgba);

    // methods

    operator ImU32 () const;
    operator ImVec4 () const;

    void SetHSV(
        float h,
        float s,
        float v,
        float a = 1.0f
        );

    static ImColor HSV(
        float h,
        float s,
        float v,
        float a = 1.0f
        );
};