|
| 1 | +local headers = { |
| 2 | + { |
| 3 | + [[]], |
| 4 | + [[ ██████ ]], |
| 5 | + [[ ████▒▒▒▒▒▒████ ]], |
| 6 | + [[ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ]], |
| 7 | + [[ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ]], |
| 8 | + [[ ██▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ]], |
| 9 | + [[ ██▒▒▒▒▒▒ ▒▒▓▓▒▒▒▒▒▒ ▓▓▓▓ ]], |
| 10 | + [[ ██▒▒▒▒▒▒ ▒▒▓▓▒▒▒▒▒▒ ▒▒▓▓ ]], |
| 11 | + [[ ██▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ██ ]], |
| 12 | + [[ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ]], |
| 13 | + [[ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ]], |
| 14 | + [[ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ]], |
| 15 | + [[ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ]], |
| 16 | + [[ ██▒▒██▒▒▒▒▒▒██▒▒▒▒▒▒▒▒██▒▒▒▒██ ]], |
| 17 | + [[ ████ ██▒▒██ ██▒▒▒▒██ ██▒▒██ ]], |
| 18 | + [[ ██ ██ ████ ████ ]], |
| 19 | + [[ ]], |
| 20 | + [[]], |
| 21 | + }, |
| 22 | + { |
| 23 | + " ██ ██ ", |
| 24 | + " ██▒▒██ ██▒▒██ ", |
| 25 | + " ██▒▒▓▓██████▓▓▒▒██ ", |
| 26 | + " ██▓▓▒▒▒▒▓▓▓▓▓▓▒▒▒▒▓▓██ ", |
| 27 | + " ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ", |
| 28 | + " ██▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓██ ", |
| 29 | + " ██▒▒▒▒██▒▒▒▒██▒▒▒▒██▒▒▒▒██ ", |
| 30 | + " ██▒▒▒▒▒▒▒▒██▒▒██▒▒▒▒▒▒▒▒██ ", |
| 31 | + " ██▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓██ ", |
| 32 | + " ██▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓██ ", |
| 33 | + " ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ", |
| 34 | + " ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ", |
| 35 | + " ██▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓██ ", |
| 36 | + " ██▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓██ ", |
| 37 | + " ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ████ ", |
| 38 | + " ██▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓██ ██▒▒▒▒██", |
| 39 | + " ██▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓██ ██▓▓██", |
| 40 | + " ██▒▒▒▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒██▒▒▒▒▒▒██ ██▒▒██", |
| 41 | + " ██▓▓▒▒▒▒██▒▒██▒▒▒▒▒▒██▒▒██▒▒▒▒▓▓██████▒▒▒▒██", |
| 42 | + " ██▓▓▒▒██▒▒██▒▒▒▒▒▒██▒▒██▒▒▓▓██▒▒▒▒▓▓▒▒██ ", |
| 43 | + " ██████▒▒██████████▒▒████████████████ ", |
| 44 | + " ██████ ██████ ", |
| 45 | + }, |
| 46 | +} |
| 47 | + |
| 48 | +--- Get a header from the list of headers |
| 49 | +---@param index number|nil Optional index to get specific header |
| 50 | +---@param random boolean|nil If true, return a random header |
| 51 | +---@return table Header lines |
| 52 | +local function get_header(index, random) |
| 53 | + if random then |
| 54 | + -- Return a random header if random is true |
| 55 | + math.randomseed(os.time()) -- Seed to get a different random each time |
| 56 | + return headers[math.random(1, #headers)] |
| 57 | + elseif index then |
| 58 | + -- Return the header at the specified index |
| 59 | + return headers[index] |
| 60 | + else |
| 61 | + -- Default to the first header if neither is specified |
| 62 | + return headers[1] |
| 63 | + end |
| 64 | +end |
| 65 | + |
| 66 | +return get_header |
0 commit comments