That was the best I could come up with
Check this thread
viewtopic.php?p=56305#p56305
Search found 161 matches
- 21 Apr 2023 18:06
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45699
- 21 Apr 2023 14:29
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45699
Re: 256 colors in virtual terminal escape sequence
I think you may be referring to this formula?einstein1969 wrote: ↑21 Apr 2023 13:45I was looking for a formula to start from a color in RGB format 24bit to the corresponding color (the one closest) to 8 bit
define R G B and set %bitColor% to your return var
Code: Select all
set "bitColor=C=((r)*6/256)*36+((g)*6/256)*6+((b)*6/256)+16"
- 21 Apr 2023 14:27
- Forum: DOS Batch Forum
- Topic: Pacman Kinda
- Replies: 6
- Views: 2622
Re: Pacman Kinda
It took me a little while to finally come up with ascii art that looked good. Thank you so much! I appreciate it
- 20 Apr 2023 18:44
- Forum: DOS Batch Forum
- Topic: Pacman Kinda
- Replies: 6
- Views: 2622
Re: Pacman Kinda
No sir! No special fonts. My library from my github has installing fonts disabled as a default. What I assume you mean is the ascii characters I used in ANSI encoding? Lets closely observe this sprite :) (as I mentioned, dostips removes the ESC character from this line of code below so I will use %E...
- 18 Apr 2023 19:20
- Forum: DOS Batch Forum
- Topic: Pacman Kinda
- Replies: 6
- Views: 2622
Re: Pacman Kinda
very beatiful!!! How did you make those drawings? Hi einstein! Thank you for asking, and your attention :) In order to create these "sprites", I utilize VT100 escape sequences in windows 10. Here is a few examples set "cherry=[2C[38;2;97;138;61m_[B[3D[C[38;2;159;100;66m/[B[3D[38;2;255;0;0m°[38;2;25...
- 08 Apr 2023 15:31
- Forum: DOS Batch Forum
- Topic: Pacman Kinda
- Replies: 6
- Views: 2622
Pacman Kinda
Here is a Pacman styled game in pure batch. Windows 10 or later. https://gyazo.com/5f983df1c5d43dbf583a1c677ff972eb.gif Eat as many DOTS as you can before the CHASER gets you! Use WASD to move around. Cherries to turn into "The predator" where Pacman turns RED for the duration, and the CHASER become...
- 31 Mar 2023 15:56
- Forum: DOS Batch Forum
- Topic: Fastest sin(x) in dos batch
- Replies: 47
- Views: 54718
Re: Fastest sin(x) in dos batch
Oh haha! I'm sorry, I was refering to aacini's method. Your sin(x) works perfectly the way you posted it the first time, my apologies for the miscommunication. I'm just a little puzzled with the solution aacini posted. Does it only support up to 85 degrees? I'm still learning and trying to understan...
- 30 Mar 2023 18:44
- Forum: DOS Batch Forum
- Topic: Fastest sin(x) in dos batch
- Replies: 47
- Views: 54718
Re: Fastest sin(x) in dos batch
Oh yes! Is it possible to macro this line sin(x)?
- 30 Mar 2023 12:54
- Forum: DOS Batch Forum
- Topic: Fastest sin(x) in dos batch
- Replies: 47
- Views: 54718
Re: Fastest sin(x) in dos batch
That was fast! I've been trying to understand how to do that for so long I gave up I'm so grateful for this!
- 30 Mar 2023 11:01
- Forum: DOS Batch Forum
- Topic: Fastest sin(x) in dos batch
- Replies: 47
- Views: 54718
Re: Fastest sin(x) in dos batch
Works great here on Win10! Over 1000 iterations, I saved a combined 10seconds! Worth the switch Is it possible to achieve atan in this fashion??
- 30 Mar 2023 06:20
- Forum: DOS Batch Forum
- Topic: Windows Batch Library
- Replies: 2
- Views: 1670
Re: Windows Batch Library
I'm really sorry to hear you aren't well. I truly hope you improve.
I will check out the new SIN(x) when I get home from work, thank you!!
I will check out the new SIN(x) when I get home from work, thank you!!
- 28 Mar 2023 15:53
- Forum: DOS Batch Forum
- Topic: Smooth Random Numbers
- Replies: 2
- Views: 1431
Re: Smooth Random Numbers
I'm afraid this isn't exactly what I'm looking for. With my examples posted above, the code I wrote does generate a smoother string of random numbers than "%random% %% 10" alone. My goals are to have each generated number influenced by it's surroundings much like perlin/simplex noise. The reason I'm...
- 27 Mar 2023 19:24
- Forum: DOS Batch Forum
- Topic: Smooth Random Numbers
- Replies: 2
- Views: 1431
Smooth Random Numbers
Hello everyone, I working on a function to give me an array of smooth random numbers. @echo off & setlocal enableDelayedExpansion set /a "wid=61", "hei=50" mode !wid!,!hei! set "esc=" set "pixel=Û" set "map=(c)+((d)-(c))*((v)-(a))/((b)-(a))" set "noise=!random:~-1!" for /l %%i in (1,1,%wid%) do ( se...
- 27 Mar 2023 17:34
- Forum: DOS Batch Forum
- Topic: Windows Batch Library
- Replies: 2
- Views: 1670
Windows Batch Library
I'm actually really nervous posting this here, but here goes nothing.. Dozens of functions & macros to make batch work easier; No matter the job. I've been working on this for a few years. Making new functions and slowly adding to the collection. I hope someone finds this useful to achieve their end...
- 23 Sep 2021 16:05
- Forum: DOS Batch Forum
- Topic: split string into substrings based on delimiter
- Replies: 44
- Views: 86100
Re: Efficient Array Management Operations in Batch files
That's exactly why it's so amazing. Because even after coding in batch for so many years, I'm STILL learning things. I just think that's really great, and that's why I love this site.Squashman wrote: ↑23 Sep 2021 15:59Yep this was discussed about 6 years ago in this thread.
viewtopic.php?f=3&t=6429