4jcraft/Minecraft.World/Util/Color.h
2026-03-13 17:06:56 -05:00

15 lines
326 B
C++

#pragma once
class Color {
private:
int colour;
public:
// Creates an opaque sRGB color with the specified red, green, and blue
// values in the range (0.0 - 1.0).
Color(float r, float g, float b);
Color(int r, int g, int b);
static Color getHSBColor(float h, float s, float b);
int getRGB();
};