Replies: 3 comments
-
That seems right, can you describe the unintended behavior more? This is what I'm seeing: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I think this effect makes sense given the code bc the trailColor is darker at the edges, so the mix of the dark red with the red gives you a slightly dark red. Are you thinking that the result should be flat red instead? For that you could try alpha compositing (using the luma value as alpha) rather than the mix() function: https://en.wikipedia.org/wiki/Alpha_compositing |
Beta Was this translation helpful? Give feedback.
-
Hello again Amanda,
I am trying to change the default black background color without success.
We can also refer to this example in the further code:
https://openprocessing.org/sketch/1760726
I tried to change the render fragment shader from this:
To this:
The result is almost there, but the mixedColor borders are not smooth.
Thank you once again,
Carlos
Beta Was this translation helpful? Give feedback.
All reactions