Page 1 of 1

Indefinite Palette cycling?

Posted: Tue Mar 23, 2021 5:29 pm
by SamuraiCrow
I see that the default for the CyclePalette() function is 1 cycle and stop. If I enter -1 as number of cycles will it cycle indefinitely or will unsigned wraparound at least kick in and cycle to MaxInt times? I'd like -1 to signify an indefinite number of palette cycles.

Re: Indefinite Palette cycling?

Posted: Thu Mar 25, 2021 8:48 pm
by airsoftsoftwair
SamuraiCrow wrote: Tue Mar 23, 2021 5:29 pm If I enter -1 as number of cycles will it cycle indefinitely or will unsigned wraparound at least kick in and cycle to MaxInt times? I'd like -1 to signify an indefinite number of palette cycles.
Actually, passing -1 will do nothing.

Re: Indefinite Palette cycling?

Posted: Sat Mar 27, 2021 7:09 pm
by SamuraiCrow
@AirsoftSoftwair

I see now that the palette cycling demonstration code doesn't use the built-in cycling command but manipulates the palette manually. Perhaps a future asynchronous version could implement infinite cycling like AmosPro has so that fading and cycling don't conflict.

Re: Indefinite Palette cycling?

Posted: Sun Mar 28, 2021 3:13 pm
by airsoftsoftwair
Actually, you can combine fading and cycling. Just use TintPalette() after CyclePalette() to fade the colors.

Re: Indefinite Palette cycling?

Posted: Mon Mar 29, 2021 4:01 pm
by SamuraiCrow
Good to know!