Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

Как сделать радужную обводку у краёв экрана как в ските?

C++:
Expand Collapse Copy
// VGUI_Surface
// draw_set_color - 15 | draw_filled_rect_fade - 123
void draw_gradient_rect(int x, int y, int w, int h, color c, color c_, bool horizontal = false) {
    draw_set_color(c.red, c.green, c.blue, c.alpha);
    draw_filled_rect_fade(x, y, w, h, 255, 0, horizontal);
    draw_set_color(c_.red, c_.green, c_.blue, c_.alpha);
    draw_filled_rect_fade(x, y, w, h, 0, 255, horizontal);
}
dalshe ya dumau ti sam razbereshsya
 
C++:
Expand Collapse Copy
// VGUI_Surface
// draw_set_color - 15 | draw_filled_rect_fade - 123
void draw_gradient_rect(int x, int y, int w, int h, color c, color c_, bool horizontal = false) {
    draw_set_color(c.red, c.green, c.blue, c.alpha);
    draw_filled_rect_fade(x, y, w, h, 255, 0, horizontal);
    draw_set_color(c_.red, c_.green, c_.blue, c_.alpha);
    draw_filled_rect_fade(x, y, w, h, 0, 255, horizontal);
}
dalshe ya dumau ti sam razbereshsya
спасибо, но как оказалось у меня всё проще. Я прозрачность на максимум выставил
 
Назад
Сверху Снизу