Indefinite Palette cycling?
-
- Posts: 475
- Joined: Fri May 15, 2015 5:15 pm
- Location: Waterville, Minnesota USA
Indefinite Palette cycling?
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.
I'm on registered MorphOS using FlowStudio.
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Indefinite Palette cycling?
Actually, passing -1 will do nothing.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.
-
- Posts: 475
- Joined: Fri May 15, 2015 5:15 pm
- Location: Waterville, Minnesota USA
Re: Indefinite Palette cycling?
@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.
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.
I'm on registered MorphOS using FlowStudio.
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Indefinite Palette cycling?
Actually, you can combine fading and cycling. Just use TintPalette() after CyclePalette() to fade the colors.
-
- Posts: 475
- Joined: Fri May 15, 2015 5:15 pm
- Location: Waterville, Minnesota USA