Search found 121 matches

by IcarusLives
07 Jul 2017 19:51
Forum: DOS Batch Forum
Topic: Color Macro
Replies: 4
Views: 1827

Re: Color Macro

pieh-ejdsch wrote:Hello Icarus,
Yuo can use a shorten macro like
Endlocal.set
viewtopic.php?f=3&t=7774#p51852
Phil


I have never seen such a thing in batch before! Is there more documentation on this? I would love to learn about it!
by IcarusLives
06 Jul 2017 11:36
Forum: DOS Batch Forum
Topic: Color Macro
Replies: 4
Views: 1827

Re: Color Macro

einstein1969 wrote:hi IcarusLives,

very good work. 8)

I not known if possible make it faster. I thinks that is the maximum level of speed.

einstein1969


Thank you!

I truly hope to find a faster method one day!
by IcarusLives
06 Jul 2017 11:34
Forum: DOS Batch Forum
Topic: Question for FOR /F.
Replies: 3
Views: 1548

Re: Question for FOR /F.

I'm not sure why, but these also do not work as expected @echo off FOR /F "usebackq delims=;" %%1 IN (`echo aa; bb; c c`) DO ECHO %%1 Output: aa bb cc @echo off FOR /F "usebackq tokens=* delims=;" %%1 IN ('aa; bb; c c') DO ECHO %%1 Output: aa bb cc @echo off FOR /F "usebackq...
by IcarusLives
05 Jul 2017 16:56
Forum: DOS Batch Forum
Topic: Color Macro
Replies: 4
Views: 1827

Color Macro

Hello everyone, After doing a lot of research on dostips about macros, and a fast color code (thank you einstein1969) I wanted to create a color macro. CALL execution is slow, but macros are fast! Is it possible to make this faster? I'm out of ideas.. Only tested on Win10 64bit https://i.gyazo.com/d...
by IcarusLives
26 Mar 2017 13:01
Forum: DOS Batch Forum
Topic: SLOW- Possible to speed this up? Wolfram Elementary Cellular Automata
Replies: 14
Views: 4771

Re: SLOW- Possible to speed this up? Wolfram Elementary Cellular Automata

Oh wow! All of your examples are insane! I need to take some time to read code thoroughly, but I've ran them all, and they're beautiful!
by IcarusLives
25 Mar 2017 23:40
Forum: DOS Batch Forum
Topic: Rose Petal drawing algorithm
Replies: 0
Views: 3315

Rose Petal drawing algorithm

Hello all ^-^ https://gyazo.com/80f42732db86278f3e090f046cd432dd.png This is just something I wanted to share with you! This algorithm draws a flower I hope you enjoy! @echo off & setlocal enableDelayedExpansion call :canvas 60 60 set "_SIN=a-a*a/1920*a/312500+a*a/1920*a/15625*a/15625*a/256...
by IcarusLives
25 Mar 2017 19:37
Forum: DOS Batch Forum
Topic: SLOW- Possible to speed this up? Wolfram Elementary Cellular Automata
Replies: 14
Views: 4771

Re: Wolfram Elementary Cellular Automata

RedEyedRocker wrote:This is created using Advanced Batch to Exe Converter which has those functions as well.


I'm sorry.. What?
by IcarusLives
25 Mar 2017 19:32
Forum: DOS Batch Forum
Topic: SLOW- Possible to speed this up? Wolfram Elementary Cellular Automata
Replies: 14
Views: 4771

SLOW- Possible to speed this up? Wolfram Elementary Cellular Automata

Hello all ^-^ https://gyazo.com/967fa3066e5ccc63c36d85dcc764600e.png I have made a somewhat of a proof of concept for cellular automata My only problem is that it's pretty slow :/ If anyone is familiar, how could we speed this up? @echo off & setlocal enableDelayedExpansion & color f0 call:c...
by IcarusLives
02 Feb 2017 16:55
Forum: DOS Batch Forum
Topic: Read arrow keys and show color text in an efficient way
Replies: 17
Views: 15809

Re: Read arrow keys and show color text in an efficient way

snip My apologies, I should have been more clear ^-^ but that does indeed answer my question. Thank you for your patience. EDIT: I just stumbled upon another question while studying your code Your tetris, for example is displaying colors SO efficiently because input AND output are Powershell. Using...
by IcarusLives
29 Jan 2017 11:51
Forum: DOS Batch Forum
Topic: Read arrow keys and show color text in an efficient way
Replies: 17
Views: 15809

Re: Read arrow keys and show color text in an efficient way

@echo off :Output rem Parameters received via lines read have one of these three forms: rem - cls rem - CursorPos X Y rem - ColorChar standard parameters of ColorChar.exe auxiliary program PowerShell ^ $console = $Host.UI.RawUI; ^ $console.WindowTitle = '2048 game by Aacini'; ^ $curSize = $console....
by IcarusLives
08 Jan 2017 17:50
Forum: DOS Batch Forum
Topic: Fail attempt at Perlin noise algorithm
Replies: 8
Views: 3069

Re: Fail attempt at Perlin noise algorithm

I'm unsure whether you wanted to implement Perlin noise on your own, or not. If you don't know how to proceed, then just implement all other dependencies before implementing the function perlin: All line by line. If you "fear" the p (or permutation) array (which most disencourage), then n...
by IcarusLives
03 Jan 2017 19:41
Forum: DOS Batch Forum
Topic: Fail attempt at Perlin noise algorithm
Replies: 8
Views: 3069

Re: Fail attempt at Perlin noise algorithm

I like this type of applications, so I read the Wikipedia article and then tried to review your program, but this was very hard to me because the code organization and the frequent jumps required to review parameters and values defined elsewhere... So I wrote my own version instead: Antonio Oh wow ...
by IcarusLives
03 Jan 2017 10:57
Forum: DOS Batch Forum
Topic: Fail attempt at Perlin noise algorithm
Replies: 8
Views: 3069

Re: Fail attempt at Perlin noise algorithm

penpen wrote:snip


Ahh, ofc. Perhaps a better way would be to split them using . as a delimeter and do comparisons without it. This should result more accurately.
by IcarusLives
02 Jan 2017 14:59
Forum: DOS Batch Forum
Topic: Fail attempt at Perlin noise algorithm
Replies: 8
Views: 3069

Re: Fail attempt at Perlin noise algorithm

Your clamp should produce errors on negative numbers, because "batch if" cannot compare floating point numbers: :: line: if %r:~0,7% lss %3 ( :: this fails: if "-1.23400" lss "0.00000" echo ok penpen I'm unsure about how this works on other OS's, but I'm running Win10....
by IcarusLives
01 Jan 2017 23:46
Forum: DOS Batch Forum
Topic: Fail attempt at Perlin noise algorithm
Replies: 8
Views: 3069

Fail attempt at Perlin noise algorithm

Hello all, I've been attempting to create the perlin noise algorithm. perlin noise algorithm I really was hoping I could use this algorithm for some possible terrain generation for some sort of a game. I find the idea of perlin noise to be very interesting. Upon my research I've learned that a piece...