r/processing • • May 19 '20

Interference Worm

167 Upvotes

7 comments sorted by

View all comments

2

u/mr_pablo May 19 '20

Would love to know how you achieved the chromatic aberration!

3

u/marcedwards-bjango May 20 '20

That’s just three copies of the line, all offset a bit by time. I’m using blendMode(SCREEN) and the three copies are #ff0000, #00ff00, and #0000ff respectively. The result is a very similar effect to chromatic aberration, but it’s a lot simpler.

I’ve just posted a link to the source code above, if you’re interested.