-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
просто уберите этот код:
Код:
/// Draw the circles
for (int i = 0; i < num_circles; i++)
{
/// Kinda retarded looking but it adds variation between windows
const float rand_num = fmod(random_num[i] + (command_info.position.x / static_cast<float>(HELPERS::TGUI_GetScreenSize().x)), 1.f);
const int width = (rand_num * body_size.x) + (HELPERS::TGUI_GetTime() * (50.f + (rand_num * 100.f))),
height = (rand_num * body_size.y) + (HELPERS::TGUI_GetTime() * (50.f + (rand_num * 100.f)));
const int radius = rand_num * max_radius;
const int alpha = fabs(sin((HELPERS::TGUI_GetTime()) + (rand_num * 255.f))) * 255.f;
const auto circle_color = HELPERS::TGUI_Color(200, 200, 200, alpha);
const auto position = HELPERS::TGUI_Vector2D(body_position.x + (width % (body_size.x - radius)),
body_position.y + (height % (body_size.y - radius)));
/// Draw the circle
HELPERS::TGUI_DrawCircle(position, circle_color, radius, 50, true);
}