Skip to content

Instantly share code, notes, and snippets.

@yaqwsx
Created July 14, 2021 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaqwsx/4962c4a26ab45ccbc45963ed8f86a8be to your computer and use it in GitHub Desktop.
Save yaqwsx/4962c4a26ab45ccbc45963ed8f86a8be to your computer and use it in GitHub Desktop.
const int MAX_TEMPERATURE = 33;
std::array< Rgb, MAX_TEMPERATURE + 1 > temperatures{
Rgb(0, 0, 0),
Rgb(10, 7, 10),
Rgb(31, 7, 7),
Rgb(47, 15, 7),
Rgb(71, 15, 7),
Rgb(87, 23, 7),
Rgb(103, 31, 7),
Rgb(119, 31, 7),
Rgb(143, 39, 7),
Rgb(159, 47, 7),
Rgb(175, 63, 7),
Rgb(191, 71, 7),
Rgb(199, 71, 7),
Rgb(223, 79, 7),
Rgb(223, 87, 7),
Rgb(223, 87, 7),
Rgb(215, 95, 7),
Rgb(215, 95, 7),
Rgb(215, 103, 15),
Rgb(207, 111, 15),
Rgb(207, 119, 15),
Rgb(207, 120, 15),
Rgb(207, 120, 23),
Rgb(199, 120, 23),
Rgb(199, 125, 23),
Rgb(199, 125, 31),
Rgb(191, 130, 31),
Rgb(191, 130, 31),
Rgb(191, 130, 39),
Rgb(191, 135, 47),
Rgb(183, 135, 47),
Rgb(183, 140, 47),
Rgb(183, 140, 55),
Rgb(255, 255, 255)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment