I'm going to develop a raytracing demo in dos batch but I have a problem with Flat colors.
In windows 7 and xp it is possible with few trick achieve this visual result.
Ie can be used in "batch dos" over sixteen FLAT colors!
This is the code for produce this image.
Code: Select all
@echo off
setlocal
chcp437
mode 80,50
echo Use Lucida console font 5
echo Disable ClearType
echo Enable "Smooth Edges of Screen Fonts"
pushd %tmp%
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do set "DEL=%%a"
<nul set /p ".=%DEL%%DEL%%DEL%%DEL%%DEL%%DEL%" > "'"
:: manual rainbow
call :color 04 "°±²Û" 4C "°±²Û" CE "°±²Û" EA "°±²Û" A2 "°±²Û" 21 "°±²Û" 15 "°±²Û" 50 "°±²Û"
echo(
popd
pause
exit/b
:color
(echo %~2\..\'
) > $$$.color.txt && findstr /a:%~1 /f:$$$.color.txt "."
Shift
Shift
If ""=="%~1" Goto :Eof
goto :color
exit/b
The tricks for achieve FLAT colors are:
- Disable CLEAR TYPE
- Enable "Smooth Edges of Screen Fonts" in System -> Advanced system Option -> Advanced -> Perfomance Configuration
- Choose LucidaConsole fonts setting to 5.
Then I came in possession of a PC with 8.1 and I could not get the flat colors. Now I no longer available of windows 8.1
Can someone help me to see if you can get FLAT colors with windows 8.1 and 10?
einstein1969