Search found 963 matches
- 27 Apr 2023 19:23
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 78782
Re: 256 colors in virtual terminal escape sequence
I was thinking of a solution that I had anticipated in previous posts. Use a special character this: ▒ In terminal fonts it has half a pixel in foreground and half in the background. And it is omogenous. It is possible to mix evenly two colors among the 256 available (I did not count the double ones...
- 27 Apr 2023 18:41
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 78782
Re: 256 colors in virtual terminal escape sequence
Thanks penpen, I'm reading your explanation, it will take me a while to study it because you're far ahead of me. I saw that you used L defined as the average of the smallest color and the largest. i'm reading this https://en.wikipedia.org/wiki/HSL_and_HSV But wouldn't it have been better to average ...
- 27 Apr 2023 05:10
- Forum: DOS Batch Forum
- Topic: DosBatch 3D Engine.
- Replies: 36
- Views: 56581
Re: DosBatch 3D Engine.
this is the file:
- 26 Apr 2023 17:44
- Forum: DOS Batch Forum
- Topic: DosBatch 3D Engine.
- Replies: 36
- Views: 56581
Re: DosBatch 3D Engine.
New Release 0.03 with rainbow colors and dinamic model. Try it and let me know how fast your processor is. I did my best to optimize the code. I hope it's fast enough even on old pcs. use VT escape sequence avaible in windows 10. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::...
- 26 Apr 2023 16:21
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 78782
Re: 256 colors in virtual terminal escape sequence
While for the cat the result obtained is good, for the image of the clouds instead the result is not good.
Do you have any ideas on how to improve the result?

Do you have any ideas on how to improve the result?

- 26 Apr 2023 15:13
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 78782
Re: 256 colors in virtual terminal escape sequence
Can you explain what you did here? :: set /a "%4.MIN3=-((%22-%11)>>32)*(-((%33-%22)>>32)*%3 - ((%22-%33)>>32)*%2) - ((%11-%22)>>32)*(-((%33-%11)>>32)*%3 - ((%11-%33)>>32)*%1)" :: set /a "%4.MAX3=-((%22-%11)>>32)*(-((%33-%11)>>32)*%1 - ((%11-%33)>>32)*%3) - ((%11-%22)>>32)*(-((%33-%22)>>32)*%2 - ((%2...
- 26 Apr 2023 14:13
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 78782
Re: 256 colors in virtual terminal escape sequence
I'm studying part 2 and I don't understand the part:
EDIT: Understood. Returns the color value without using a palette variable.
Code: Select all
%4.r2=55+40*%4.r2+((%4.r2-1)>>3)*55, %4.g2=55+40*%4.g2+((%4.g2-1)>>3)*55, %4.b2=55+40*%4.b2+((%4.b2-1)>>3)*55"
- 26 Apr 2023 13:30
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 8897
Re: Stacker, A batch interpretation of the game.
Yes, I was referring to alternate data streams.
By deleting the batch file you have reset.
At least I think that is where the problem may be.
The "space" key no longer worked.
By deleting the batch file you have reset.
At least I think that is where the problem may be.
The "space" key no longer worked.
- 26 Apr 2023 05:03
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 8897
Re: Stacker, A batch interpretation of the game.
I tried to delete the batch file and now it started working again.
There must be a bug maybe on stream management.
There must be a bug maybe on stream management.
- 26 Apr 2023 04:15
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 8897
Re: Stacker, A batch interpretation of the game.
Today I relaunched the game but it doesn't work anymore.
I practically press the space and it does nothing.
If I press tab instead it exits.
I have it on the desktop, I saw that it creates a file on the desktop.
I practically press the space and it does nothing.
If I press tab instead it exits.
I have it on the desktop, I saw that it creates a file on the desktop.
- 25 Apr 2023 21:32
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 78782
Re: 256 colors in virtual terminal escape sequence
This is the cat

look good.
I'm reading the code but I don't understand how you did the function that calculates the distance between colors.
Can you explain?

look good.
I'm reading the code but I don't understand how you did the function that calculates the distance between colors.
Can you explain?
- 25 Apr 2023 06:57
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 78782
Re: 256 colors in virtual terminal escape sequence
the cat without grays is terrible. With grays I think it will be much better. @echo off & setlocal enableDelayedExpansion mode 103,98 chcp 65001 cls for /F %%a in ('echo prompt $E^| cmd') do set "ESC=%%a" set hex[0]=BCBDADD0D1C1CFD0C0CECFBFD5D6C6D7D8C8D8D9C9DADBCBDBDECDDFE2D1E0E2D4DFE1D3E0E4D6E5E9DB...
- 25 Apr 2023 06:38
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 78782
Re: 256 colors in virtual terminal escape sequence
Could it work like this? pseudocode: set /a "index_Red=(%1-35)/40+((%1-48)>>8)-((%1-75)>>8)" set /a "index_Green=(%2-35)/40+((%2-48)>>8)-((%2-75)>>8)" set /a "index_Blue=(%3-35)/40+((%3-48)>>8)-((%3-75)>>8)" set /a "index_gray=0xE8+(((0x3FF*((((%1)+(%2)+(%3)+297)&0x400)>>10))|(((%1)+(%2)+(%3)+297)&0...
- 25 Apr 2023 06:22
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 78782
Re: 256 colors in virtual terminal escape sequence
I succeeded (%1-35)/40+((%1-48)>>8)-((%1-75)>>8) This work The execution time is the same , your formula is very good choice. Final formula : set /A "%4=(((%1)-35)/40+((%1-48)>>8)-((%1-75)>>8))*36 + (((%2)-35)/40+((%2-48)>>8)-((%2-75)>>8))*6 + (((%3)-35)/40+((%3-48)>>8)-((%3-75)>>8)) + 16" To includ...
- 25 Apr 2023 05:49
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 78782
Re: 256 colors in virtual terminal escape sequence
There is an error on the value 74, can you correct?, I failed.
Your formula is shorter and I prefer it to mine.
Your formula is shorter and I prefer it to mine.