Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_blend_test_Draw_0

(view raw script w/o annotations or w/e)
1
image_blend = make_color_hsv(hue, 255, 255);
2
draw_set_color(c_dkgray);
3
draw_rectangle(x - 140, y - 130, x + 230, y + 10, false);
4
var _sin = sin((hue / 64) * pi) * 4;
5
var _cos = cos((hue / 128) * pi) * 4;
6
draw_circle((x - 130) + _sin, (y - 60) + _cos, 40, false);
7
draw_set_color(image_blend);
8
draw_self_ext(undefined, undefined, x - 90, undefined, undefined, undefined, undefined, 16777215, 1);
9
draw_self_ext(2799, undefined, x - 90, y + 50, undefined, 2, undefined, 16777215, 1);
10
draw_circle((x - 130) + _sin, (y - 60) + _cos, 30, false);
11
draw_self();
12
draw_self_ext(2799, undefined, undefined, y + 50, undefined, 2, undefined, undefined, 1);
13
shader_replace_simple_set_hook(20);
14
draw_self_offset(90, 0);
15
draw_self_ext(2799, undefined, x + 90, y + 50, undefined, 2, undefined, undefined, 1);
16
shader_replace_simple_set_hook(38);
17
draw_self_offset(180, 0);
18
draw_self_ext(2799, undefined, x + 180, y + 50, undefined, 2, undefined, undefined, 1);
19
shader_replace_simple_reset_hook();
20
draw_set_color(c_yellow);
21
draw_set_halign(fa_center);
22
draw_text_outline(x - 90, y + 2 + (sin(((hue / 64) * pi) + -1) * 2), "base");
23
draw_text_outline(x, y + 2 + (sin(((hue / 64) * pi) - 2) * 2), "multiply");
24
draw_text_outline(x, y + 16 + (sin(((hue / 64) * pi) - 3) * 2), "(default)");
25
draw_text_outline(x + 90, y + 2 + (sin(((hue / 64) * pi) - 3) * 2), "screen");
26
draw_text_outline(x + 180, y + 2 + (sin(((hue / 64) * pi) - 4) * 2), "overlay");
27
draw_set_halign(fa_left);
28
hue = (hue + 1) % 256;