Flat/Smooth colors in windows 8.x and windows 10

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
einstein1969
Expert
Posts: 961
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Flat/Smooth colors in windows 8.x and windows 10

#1 Post by einstein1969 » 24 Mar 2016 05:15

Hi to all,

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.

Image

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
Last edited by einstein1969 on 24 Mar 2016 08:25, edited 1 time in total.

npocmaka_
Posts: 516
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: Flat/Smooth colors in windows 8.x and windows 10

#2 Post by npocmaka_ » 24 Mar 2016 07:30

How clear type can be disabled.

Windows 10 had problems with true type fonts (like LucidaConsole) in the console and the last time I've tried it extended ascii character were displayed with boxes.

einstein1969
Expert
Posts: 961
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: Flat/Smooth colors in windows 8.x and windows 10

#3 Post by einstein1969 » 24 Mar 2016 07:45

To disable cleartype I have found this guide.

npocmaka_
Posts: 516
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: Flat/Smooth colors in windows 8.x and windows 10

#4 Post by npocmaka_ » 25 Mar 2016 01:10

Works fine on windows 8.
You are using 178-179 ascii chars to emulate color nuances?

einstein1969
Expert
Posts: 961
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: Flat/Smooth colors in windows 8.x and windows 10

#5 Post by einstein1969 » 25 Mar 2016 13:30

Yes, I use the "shadow" chars. 176-177-178 that found in most fonts and codepage at the same numbers.
I have not investigate enough on this.
Can you post an image of the result on windows 8?
Have you used other trick than these I used?

Post Reply