How to make a rainbow color filter in a camera app?

Hello People of the community.

I need to make a camera app with a color filter option.
The filter need to apply a image tint to all the images taken by the app.

Every photo taken by this app must have a switch option to do this visual filtering.
I checked in the forum and there are some extension i can use, but not for this particular case.

Here i share a similar photo, but not in the color sequence i need.

Snap2793

I need this sequence: start with magenta, violet, cyan, green, yellow, orange and ending in red.

I do not where to find info to do it.
I even search some help with chatgpt, but was pointless.
Maybe with a html or javascript script included in the app...?

I share my needs here, maybe someone can push me in a good direction.

You will need an extension to do that - either write one yourself, ask a developer to write one or use something existing such as ImageMagick:

possible to make an image with sequence colors, and make the image with some transparent, and overlap it on the video?

@ChrisWard , @Kevinkun , Thank you for your comments.

By the way, i only need this filtering for the camera (as a final image), i do not need as a video - i will not use camcorder options.
This will be as a capture of a camera only.

Again. Thanks you both.

@esclikes Please shut if you can't write answers with AI. Thank you.