How to change GRADIENT with code?

Despite the video, I don’t understand what you’re trying to change.
Can you elaborate? (maybe post a screenshot and put an arrow pointing to the element you’d like to change) + explain what type of element you wish to change, is it a button? a vector element? a box? an image?