Search found 941 matches
- 22 Apr 2023 05:19
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 54062
Re: 256 colors in virtual terminal escape sequence
That was the best I could come up with :( Check this thread https://www.dostips.com/forum/viewtopic.php?p=56305#p56305 This is better but still not the best solution. Meanwhile, I want to check as he said penpen the L * a* b * to see if it helps me. https://en.wikipedia.org/wiki/CIELAB_color_space ...
- 22 Apr 2023 04:30
- Forum: DOS Batch Forum
- Topic: Convert R G B values into single 0 - 255 color value?
- Replies: 20
- Views: 22218
Re: Convert R G B values into single 0 - 255 color value?
Hi, I played a bit with your code. I tried to optimize the display function, I precompute all escape sequences before the display function is called. I used the tip of Dave to use certutil. This should be fast enough for a game. Only the RGB-converting time is slow (takes 7seconds on my pc) Now the...
- 21 Apr 2023 16:26
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 54062
Re: 256 colors in virtual terminal escape sequence
Here's how the first red should return.
Moved to the right and maybe should use less space, be smaller in width
https://imgur.com/a/Sb3VSlk
Moved to the right and maybe should use less space, be smaller in width
https://imgur.com/a/Sb3VSlk
- 21 Apr 2023 16:00
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 54062
Re: 256 colors in virtual terminal escape sequence
Here you can see better. https://imgur.com/a/fRa4dir @echo off setlocal enableDelayedExpansion rem save in UTF8 chcp 65001 cls for /F %%a in ('echo prompt $E^| cmd') do set "ESC=%%a" for %%D in (1 2 3) do ( For /L %%R in (0,3,255) do ( call :to256 %%R 0 0 C <nul set/p =%ESC%[38;5;!C!m█ ) echo( ) for...
- 21 Apr 2023 15:31
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 54062
Re: 256 colors in virtual terminal escape sequence
thanks is a good starting point even if I think there is a problem. I thought I would get a better result https://imgur.com/a/Oyd8WKW @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]=BCBDADD0D1C1CFD0C0CECFBFD5D6...
- 21 Apr 2023 13:45
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 54062
Re: 256 colors in virtual terminal escape sequence
I was looking for a formula to start from a color in RGB format 24bit to the corresponding color (the one closest) to 8 bit
- 21 Apr 2023 10:10
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 54062
256 colors in virtual terminal escape sequence
I'm trying to create the reverse function to find the color indexes of the 216 xterm/ansi/vt100 colors chart implemented in windows 10. I refer to the escape sequence ESC 38 ; 5 ; <s> m see: https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences?redirectedfrom=MSDN#exte...
- 21 Apr 2023 09:56
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 3046
Re: Stacker, A batch interpretation of the game.
Well done T3rry!
It's fun and difficult, but definitely a great idea.
thank you for sharing!
It's fun and difficult, but definitely a great idea.
thank you for sharing!
- 21 Apr 2023 09:45
- Forum: DOS Batch Forum
- Topic: Pacman Kinda
- Replies: 6
- Views: 2847
Re: Pacman Kinda
I swear I was convinced that they were pixels, your drawings are fantastic and so simple.
I like that kind of magnet that has the part in shadow and looks three-dimensional.
You can make very nice games.
I like that kind of magnet that has the part in shadow and looks three-dimensional.
You can make very nice games.
- 19 Apr 2023 15:44
- Forum: DOS Batch Forum
- Topic: Run Powershell from bat as Administrator
- Replies: 7
- Views: 4485
Re: Run Powershell from bat as Administrator
On my pc with windows 10 it works.
Do you get the UAC prompt?
Do you get the UAC prompt?
- 19 Apr 2023 15:39
- Forum: DOS Batch Forum
- Topic: Pacman Kinda
- Replies: 6
- Views: 2847
Re: Pacman Kinda
I assume that you use special fonts to draw in this way.
I can't find the part in question in the code.
Can you tell me?
I can't find the part in question in the code.
Can you tell me?
- 18 Apr 2023 02:41
- Forum: DOS Batch Forum
- Topic: Pacman Kinda
- Replies: 6
- Views: 2847
Re: Pacman Kinda
very beatiful!!!
How did you make those drawings?
How did you make those drawings?
- 17 Apr 2023 04:46
- Forum: DOS Batch Forum
- Topic: Run Powershell from bat as Administrator
- Replies: 7
- Views: 4485
Re: Run Powershell from bat as Administrator
for start as Administrator try this: @echo off Rem Check for Run as administrator. call :Restart_as_Administrator %1 rem put here your code goto :eof :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::: SUBROUTINE :::::::::::::::::::::::...
- 04 Apr 2023 07:48
- Forum: DOS Batch Forum
- Topic: Parallax background, and overlapping images properly
- Replies: 14
- Views: 18010
Re: Parallax background, and overlapping images properly
thanks penpen
- 02 Apr 2023 21:48
- Forum: DOS Batch Forum
- Topic: Parallax background, and overlapping images properly
- Replies: 14
- Views: 18010
Re: Parallax background, and overlapping images properly
I used your sample files cloud1.ppm and mountain1.ppm. This batch demo shows that you can overlay two different images in real time (7 FPS). I'm using pre cached files to avoid the long converting time from RGB to escape sequences. And for combining two images, I precompute a run length encoded arr...