Search found 121 matches

by IcarusLives
03 May 2018 14:36
Forum: DOS Batch Forum
Topic: Algorithmic conditions, and returns????
Replies: 15
Views: 4956

Re: Algorithmic conditions, and returns????

@echo off &setlocal REM ----- return 0 if false or 1 if true ----- set "LSS(x,y)=(((x-y)>>31)&1)" &REM < set "LEQ(x,y)=((~(y-x)>>31)&1)" &REM <= set "GTR(x,y)=(((y-x)>>31)&1)" &REM > set "GEQ(x,y)=((~(x-y)>>31)&1)" &REM >= set "EQU(x,y)=(((~(y-x)>>31)&1)&((~(x-y)>>31)&1))" &REM == set "NEQ(x,y)=(((...
by IcarusLives
03 May 2018 13:14
Forum: DOS Batch Forum
Topic: And now dos batch color secrets?
Replies: 19
Views: 9517

Re: And now dos batch color secrets?

Einstein, my friend, where have you been? Your work on colors has inspired me over time.
by IcarusLives
29 Apr 2018 21:57
Forum: DOS Batch Forum
Topic: And now dos batch color secrets?
Replies: 19
Views: 9517

Re: And now dos batch color secrets?

Sorry to dig this up, but I thought maybe it might be useful to post a VT100 solution for WIN 10 PCs.. HSL https://gyazo.com/0883da98ab6f230068823e8a96e07681.png @echo off & setlocal enabledelayedexpansion mode 90,60 for /F %%a in ('echo prompt $E^| cmd') do set "ESC=%%a" Set /a s=10000, v1=10000 Fo...
by IcarusLives
27 Apr 2018 11:24
Forum: DOS Batch Forum
Topic: An apology and one final question to clear a matter up
Replies: 13
Views: 3769

Re: An apology and one final question to clear a matter up

Probably because it's more trivial than your initial problem. I assume he figured you could handle it..
by IcarusLives
23 Apr 2018 20:20
Forum: DOS Batch Forum
Topic: 7 zip command help.
Replies: 5
Views: 2326

Re: 7 zip command help.

I, at one point, considered breaking everything down for him. Then, after I reread everything, I realized everyone had already given him exactly what he needed, and he neglected to utilize it.
by IcarusLives
18 Apr 2018 20:44
Forum: DOS Batch Forum
Topic: Convert R G B values into single 0 - 255 color value?
Replies: 18
Views: 6770

Re: Convert R G B values into single 0 - 255 color value?

Penpen, I've been playing with your code, and to be honest this is really fun! https://gyazo.com/e2f24ad6e3798e7a94eb25d135a85d3a.gif @echo off setlocal enableExtensions disableDelayedExpansion call :init :: set up colortables set "colorTable1="0;0;0","0;255;0","255;0;0","128;196;0","255;222;173","1...
by IcarusLives
16 Apr 2018 22:35
Forum: DOS Batch Forum
Topic: Parallax background, and overlapping images properly
Replies: 11
Views: 3964

Re: Parallax background, and overlapping images properly

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 array for faster copying the relevant parts Jeb this is aw...
by IcarusLives
16 Apr 2018 22:31
Forum: DOS Batch Forum
Topic: Convert R G B values into single 0 - 255 color value?
Replies: 18
Views: 6770

Re: Convert R G B values into single 0 - 255 color value?

Oh my... What a concept! I feel embarrassed I hadn't though of this. Thank you so much for this Penpen! I also find it amazing that you ALSO managed to solve my OTHER issue https://www.dostips.com/forum/viewtopic.php?p=56360#p56360 I will read this code thoroughly so I can learn from it an implement...
by IcarusLives
16 Apr 2018 22:27
Forum: DOS Batch Forum
Topic: Reading a website and saving as variable
Replies: 2
Views: 1101

Re: Reading a website and saving as variable

Here is a solution you could use! Plus, you'll end up with the BreakOut Batch Arcade Game I made a while back. Never released it because I was too shy. (Everyone here seems to be a genius :shock: ) In this code there is a function named :download <website> <outputName.fileExtension> (I don't think t...
by IcarusLives
16 Apr 2018 10:25
Forum: DOS Batch Forum
Topic: Convert R G B values into single 0 - 255 color value?
Replies: 18
Views: 6770

Re: Convert R G B values into single 0 - 255 color value?

jeb wrote:
16 Apr 2018 09:46
-snip-
Your code is beautiful!!! It works so much better than mine! Excellent work, Jeb! Thank you for sharing!

I replied to your other post as well!

viewtopic.php?p=56404#p56404
by IcarusLives
16 Apr 2018 10:23
Forum: DOS Batch Forum
Topic: Parallax background, and overlapping images properly
Replies: 11
Views: 3964

Re: Parallax background, and overlapping images properly

jeb wrote:
16 Apr 2018 09:50
Hi Icarus,

do you can put your ppm files somewhere, so we can play with them?
I am so happy you asked! Of course I can!

Templates for Parallax

Other PPMs
by IcarusLives
16 Apr 2018 07:51
Forum: DOS Batch Forum
Topic: Parallax background, and overlapping images properly
Replies: 11
Views: 3964

Re: Parallax background, and overlapping images properly

I really appreciate all of the feedback!

I was afraid the performance would turn out to be too poor to enjoy, but I just couldn't help but at least see what I can do. Perhaps I'll just backburner this idea for a while. :oops:
by IcarusLives
15 Apr 2018 19:38
Forum: DOS Batch Forum
Topic: Convert R G B values into single 0 - 255 color value?
Replies: 18
Views: 6770

Re: Convert R G B values into single 0 - 255 color value?

How should I go about implementing a precomputed table of colors?

This is all entirely new to me, but I'm really trying to understand. Sorry if it seems I'm failing to see the obvious..
by IcarusLives
15 Apr 2018 18:30
Forum: DOS Batch Forum
Topic: Parallax background, and overlapping images properly
Replies: 11
Views: 3964

Re: Parallax background, and overlapping images properly

The only thing I can think of is to draw the closest image first, instead of last. This is because if we draw it first, we can then say "within this area, if the pixel is NOT already colored, place this new pixel for this new image here, otherwise, check the next pixel" Surely this method is slow, c...
by IcarusLives
15 Apr 2018 00:25
Forum: DOS Batch Forum
Topic: Parallax background, and overlapping images properly
Replies: 11
Views: 3964

Parallax background, and overlapping images properly

Hello everyone! I've been working on a parallax background where I take 3 VT100 images, overlap them properly(this is the problem), and display so where each image is basically "further" than the prior. (picture below) https://gyazo.com/445e52478fd33f57b5f76d3021912cbf.png But overlapping isn't as e...