How can I simulate this image?

using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;

public class ChangeToWhite : MonoBehaviour
{

    [Header("Post Processing")]
    public VolumeProfile volumeProfile;
    private float intensity;
    private ColorAdjustments colorAdjustments;

    [Header("Falling")]
    public float maxBrightness = 10f;
    public float minBrightness = 0f;
    public float changeSpeed = 30f;
    [SerializeField] private bool changeBrightness; // this doesnt need to be serialized because you will probably end up setting the bool in your script.


    private void Start()
    {
        volumeProfile.TryGet(out colorAdjustments);
    }

    private void Update()
    {
        if (changeBrightness)
            BrightenScreen();

        else if (!changeBrightness)
            DarkenScreen();
       

    }

    private void BrightenScreen()
    {
        if (colorAdjustments.postExposure.value >= maxBrightness)
        {
            colorAdjustments.postExposure.value = maxBrightness; // caps the overflow due to time.deltatime
            return;
        }


        intensity += Time.deltaTime * changeSpeed;

        colorAdjustments.postExposure.value = intensity;
    }

    private void DarkenScreen()
    {
        if (colorAdjustments.postExposure.value <= minBrightness)
        {
            colorAdjustments.postExposure.value = minBrightness;// caps the overflow due to time.deltatime
            return;
        }


        intensity -= Time.deltaTime * changeSpeed;

        colorAdjustments.postExposure.value = intensity;
    }

}

I know that this topic is resolved, but since now you have another opened topic, asking for “Canvas Image color changing” I thought, that this solution might be better.
(This is for URP) (I posted the same script but with bloom last topic, but this time its with the override “colorAdjustements”)

Again, you need a global volume, assign your profile, add the override “colorAdjustements”, activate the box for “post exposure” and select your volumeProfile.