Battery operated flashlight whose intensity decreases with time

Hey, could you make something work with the tutorial I’ve send? Would be great to hear back and if there is no more questions, please make sure to checkout your question! <3