本帖最后由 batche 于 2023-10-1 18:54 编辑
更新:调了一下色,在原来的淡入后又加了闪烁、跳动特效。- @echo off
- set "Marx=毛"
- If "%1"=="" (reg add HKCU\Console\National_Day /V "FontSize" /T Reg_DWORD /D 0x0006000C /F >nul
- Start "National_Day" "%ComSpec%" /C %0 arg & exit) else reg delete HKCU\Console\National_Day /F >nul
- Mode Con: Cols=220 Lines=25 & Chcp 437>nul&setlocal EnableDelayedExpansion
- for /f %%m in ('cmd/u/cecho !Marx!')do set "Marx=%%m"&set Marx=!Marx:~0,1!!Marx:~0,1!
- for /f "delims=#" %%e in ('"Prompt #$e#&for %%$ in (esc) do rem"') do set "esc=%%e["&Set /p=!esc!?25l<nul
- set "Chr[1]=0,0,0x0,0x7e48,0x0248,0x0248,0x0488,0x0488,0x0908,0x09fe,0x1008,0x1108,0x1288,0x3c78,0x1010,0x0aa0,0x1450,0x2818,0x0"
- set "Chr[2]=0,0,0x7ffe,0x4002,0x4002,0x4ff2,0x4102,0x4102,0x4102,0x4ff2,0x4102,0x4122,0x4132,0x4102,0x5ffa,0x4002,0x4002,0x7ffe,0"
- set "Chr[3]=0,0,0x0080,0x0040,0x1fff,0x1000,0x1040,0x0840,0x10e0,0x17ff,0x3040,0x20b0,0x2108,0x6108,0x4204,0x4204,0x8c06,0,0"
- set "Chr[4]=0,0,0x0,0x1080,0x1080,0x1080,0x1088,0x5BFC,0x5488,0x5088,0x9088,0x1088,0x1FFE,0x1080,0x1140,0x1120,0x1210,0x140E,0x1804"
- set "Chr[5]=0,0,0x0020,0x00F0,0x1F00,0x1000,0x1100,0x1100,0x2104,0x7FFE,0x0100,0x0100,0x0920,0x0910,0x1108,0x210C,0x4504,0x0200,0"
- for /l %%l in (1,1,68) do (
- if %%l leq 20 (set /a c=14+%%l*12,ye=%%l*11)
- set /p=%ESC%38;2;!c!;0;0m<nul<nul&set /a sw=%%l%%2
- if %%l gtr 20 (if !sw! equ 1 (set /p=%ESC%38;2;!c!;!ye!;0m<nul) else (
- set /p=%ESC%38;2;!c!;0;0m<nul))
- if %%l equ 68 set /p=%ESC%38;2;!c!;!ye!;0m<nul&set /p=%ESC%48;2;!c!;0;0m<nul&cls
- for /l %%i in (1,1,5) do (
- if %%l equ 21 set "Chr[%%i]=!Chr[%%i]!,0"
- set /a _x=^(%%i-1^)*40+10,_y=5
- for %%_ in (!Chr[%%i]!) do (
- set /a n=1
- set "xy="
- for /l %%l in (1,1,20) do (
- set /a x=^(%%_^&n^)/n,n*=2
- set "xy=!x!!xy!"
- )
- set xy=!xy:1=%Marx%!
- set xy=!xy:0= !
- set /p=%ESC%!_y!;!_x!H<nul
- echo(!xy!
- set /a _y+=1
- )
- echo,
- )
- if %%l equ 20 timeout /t 1 /NOBREAK >nul 2>nul
- )
- pause>nul
复制代码
|