Ivan Belyavtsev
09.07.2022
const float MAX_FLOAT_COLOR_VALUE = 255.f;
const int MAX_COLOR_VALUE = 255;
const int LEAST_COLOR_VALUE = 0;
static unsigned_color from_color(const color& color)
{
unsigned_color out{};
out.r = std::clamp(float_to_int(MAX_FLOAT_COLOR_VALUE * color.r), LEAST_COLOR_VALUE, MAX_COLOR_VALUE);
out.g = std::clamp(float_to_int(MAX_FLOAT_COLOR_VALUE * color.g), LEAST_COLOR_VALUE, MAX_COLOR_VALUE);
out.b = std::clamp(float_to_int(MAX_FLOAT_COLOR_VALUE * color.b), LEAST_COLOR_VALUE, MAX_COLOR_VALUE);
return out;
};
by Fedor Krasilnikov
by Danil Meshcherekov, Egor Kuziakov, Gleb Kirillov, Gleb Miroshin, Grigorii Fil, Ivan Chernakov, Vladislav Urzhumov
by Grigorii Fil, Maxim Insapov
by Georgiy Sapronov (and an attempt by Vitaliy Alifanov)
The official date of the exam is 22.07.2022.
The actual date of the exam is today.
Go Moodle and pass the test:
https://moodle.innopolis.university/mod/quiz/view.php?id=76482