1 local dragon = string.split([[
18 \\_'. > --._ '. \ / / /
29 (_ ) /b) \ '. : \___.-'_/ \__/
30 /:/: , ) : ( /_.'__/-'|_ _ /
31 /:/: __/\ > __,_.----.__\ / (/(/(/
32 (_(,_/V .'/--' _/ __/ | /
41 local title = string.split([[
43 | _ \ _ __ __ _ __ _ ___ _ __ |_ _| _ \ / ___|
44 | | | | '__/ _` |/ _` |/ _ \| '_ \ | || |_) | |
45 | |_| | | | (_| | (_| | (_) | | | || || _ <| |___
46 |____/|_| \__,_|\__, |\___/|_| |_|___|_| \_\\____|
50 local size_dragon = cutie.get_dimensions(dragon)
51 local size_title = cutie.get_dimensions(title)
53 dragonirc.splashscreen = async(function()
54 cutie.set_cursor_shown(false)
55 local promise = Promise()
56 local splashscreen_time = 0
60 interval = setInterval(function()
61 splashscreen_time = splashscreen_time + 1 / 60
63 if splashscreen_time > 1 then
65 clearInterval(interval)
70 cutie.set_background({0, 0, 0})
75 local size = cutie.get_terminal_size()
77 cutie.set_color(360 * math.max(1 - splashscreen_time * 2 / 3, 0))
78 cutie.render_at(dragon,
79 (size[1] - size_dragon[1]) / 2,
80 (size[2] - size_dragon[2]) / 2
83 cutie.set_color({1, 1, 1})
84 cutie.render_at(title,
85 (size[1] - size_title[1]) / 2,
86 size[2] - size_title[2] - 1
94 cutie.set_cursor_shown(true)