Indefinite Palette cycling?

Feature requests for future versions of Hollywood can be voiced here
Post Reply
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Indefinite Palette cycling?

Post 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.
I'm on registered MorphOS using FlowStudio.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Indefinite Palette cycling?

Post 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.
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Indefinite Palette cycling?

Post 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.
I'm on registered MorphOS using FlowStudio.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Indefinite Palette cycling?

Post by airsoftsoftwair »

Actually, you can combine fading and cycling. Just use TintPalette() after CyclePalette() to fade the colors.
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Indefinite Palette cycling?

Post by SamuraiCrow »

Good to know!
I'm on registered MorphOS using FlowStudio.
Post Reply