Hi. You can edit and format your code by selecting the text and tapping </>
I think the problem with your second code is because you are using background(0) which does not fade like
fill(); affects to all the following lanes of your code till you change it to other configuration, just add more ellipses and they will act all in same mode:
In the first example the fade out happens because you are adding more transparent black layers and when you add transparent layers over and over, your layer will get to that color, hiding the ellipses drawn.