Hello @Abhyudaya_Singh ,
This may be related:
Very weird stuff going on with colors and transparency with the P2D renderer
Add support for pre-multiplied alpha · Issue #3391 · processing/processing · GitHub
:)