Search found 114 matches

by IcarusLives
17 Jun 2019 13:37
Forum: DOS Batch Forum
Topic: Animated loading screen
Replies: 2
Views: 571

Re: Animated loading screen

Generally whatever it is that is loading, you can prompt it within the code to do so. For example... @echo off for /l %%a in (1,1,100) do ( cls echo Currently working: %%a... ) echo done pause This "loading" would be quite fast though. If you're looking for something "PURELY" aesthetic, then that is...
by IcarusLives
29 May 2019 22:02
Forum: DOS Batch Forum
Topic: Text Files - Coloured Characters
Replies: 6
Views: 975

Re: Text Files - Coloured Characters

-snip- I very much appreciate you using MY code as an example! How exciting :) OP, Here are some examples of coloring with VT100. Mind you, this is a WIN10 feature. The method below is using string substitution. You will notice VT100 colors very quickly. @echo off & setlocal enableDelayedExpansion ...
by IcarusLives
11 May 2019 10:11
Forum: DOS Batch Forum
Topic: Microsoft New Terminal - Thoughts???
Replies: 1
Views: 208

Microsoft New Terminal - Thoughts???

https://youtu.be/KMudkRcwjCw

Above is the link to the video!

I'm curious about thoughts on the new terminal? I still have so many questions. It is said to release "winter" 2019
by IcarusLives
07 May 2019 22:07
Forum: DOS Batch Forum
Topic: Fire-Colored particle system
Replies: 6
Views: 386

Fire-Colored particle system

Hello everyone, Here is a particle system! they change colors as they rise. Not much to be impressed about, just a fun visual. Enjoy! https://gyazo.com/eb85e26ab0ea2079abdde05b67600143.gif @echo off & setlocal enableDelayedExpansion ( for /f %%a in ('echo prompt $E^| cmd') do set "esc=%%a" ) & echo ...
by IcarusLives
07 May 2019 22:04
Forum: DOS Batch Forum
Topic: 3D points to 2D projection
Replies: 0
Views: 151

3D points to 2D projection

Hello! I have been experimenting with 3D points, and I am seeking further knowledge! If anyone can lead me to some valuable threads or sites I would very much appreciate it! Thanks in advanced :) https://gyazo.com/840f9d75eff0f545aea7b69b9b5e0b15.gif @echo off & setlocal enableDelayedExpansion call ...
by IcarusLives
07 May 2019 21:59
Forum: DOS Batch Forum
Topic: The beauty of Recursion
Replies: 0
Views: 144

The beauty of Recursion

Just wanted to share some simple recursive functions as a friendly reminder that recursion is our friend! No help necessary unless you really just find this neat. Please enjoy :) https://gyazo.com/aae956c231d70874a04e8faf1feb270d.png @echo off & setlocal enableDelayedExpansion & call :math :main cal...
by IcarusLives
02 May 2019 09:42
Forum: DOS Batch Forum
Topic: LERP() function
Replies: 4
Views: 260

Re: LERP() function

Hey! Thanks for the performance update! More or less, I just wanted to demonstrate the function with some very readable code. My hopes were that it would appear "easy to use". LERP is useful for a lot things, but I am still learning about it. The code below demonstrates how LERP can be used to "foll...
by IcarusLives
01 May 2019 23:35
Forum: DOS Batch Forum
Topic: LERP() function
Replies: 4
Views: 260

Re: LERP() function

Solved my original problem, and released the function. Hope it comes useful!
by IcarusLives
30 Apr 2019 22:59
Forum: DOS Batch Forum
Topic: LERP() function
Replies: 4
Views: 260

LERP() function

Hello, I finally figure out my LERP function formula! Please view https://en.wikipedia.org/wiki/Linear_interpolation set "lerp=?=(a+c*(b-a)*1000)/100000+a" Tested with this code, trying to simulate the "chaos game" @echo off & setlocal enableDelayedExpansion & mode 100,100 ( for /f %%a in ('echo pro...
by IcarusLives
12 Apr 2019 09:17
Forum: DOS Batch Forum
Topic: pass value to string handle function failed
Replies: 8
Views: 488

Re: pass value to string handle function failed

sincos2007 wrote:
12 Apr 2019 04:02
Hi IcarusLives,

Could you show me how to expand !count_of_chars! inside ()?

Thanks

Code: Select all

 call echo %%input_line:~0,!count_of_chars!%%
 
 or
 
 for %%i in (!count_of_chars!) do echo !input_line:~0,%%i!
by IcarusLives
11 Apr 2019 23:58
Forum: DOS Batch Forum
Topic: pass value to string handle function failed
Replies: 8
Views: 488

Re: pass value to string handle function failed

hi Steffen, I have test the code you post, it really works. Thanks. There is another code related to this topic which not work: :test4 echo on setlocal EnableDelayedExpansion set "input_line=1234567" set "n=1" for /l %%i in (1,1,7) do ( set "count_of_chars=!n!" echo !input_line:~0,%count_of_chars%!...
by IcarusLives
28 Mar 2019 07:07
Forum: DOS Batch Forum
Topic: Need help with a game
Replies: 2
Views: 294

Re: Need help with a game

One important thing to remember is that batch scripts run from top to bottom. I want the text of your answer to be echo just after the "Me: ", now it is just marking 1. The other thing is that I want the all "Answers choice" part to be deleted. You need to remember that you have not mapped an array ...
by IcarusLives
04 Mar 2019 13:27
Forum: DOS Batch Forum
Topic: Cardioid - Heart Curve
Replies: 6
Views: 614

Re: Cardoid - Heart Curve

Aacini wrote:
04 Mar 2019 09:14
Interesting!
Thank you for thinking so! And thank you for rewritting a OS friendly version!
by IcarusLives
04 Mar 2019 13:26
Forum: DOS Batch Forum
Topic: Cardioid - Heart Curve
Replies: 6
Views: 614

Re: Cardoid - Heart Curve

I have never heard of a "cardoid". Did you mean "cardioid"? That shape is not a cardioid because it has two cusps, where as a true cardioid has one cusp. If the bottom was rounded instead of having a point then it could be a cardioid. Haha, yes that is what I meant. Thank you! https://upload.wikime...
by IcarusLives
04 Mar 2019 08:09
Forum: DOS Batch Forum
Topic: Cardioid - Heart Curve
Replies: 6
Views: 614

Cardioid - Heart Curve

Just wanted to share something neat I found. http://mathworld.wolfram.com/HeartCurve.html I attempted to recreate this in batch. Here is my attempt. The algorithm is correct. This is the 6th example. I tried to "fine tune" the heart to appear more.. hearty..? A deeper point in the top would be nice,...