Link to home
Start Free TrialLog in
Avatar of zumpoof
zumpoof

asked on

HTML canvas: how do I create these distorted circles?

I'd like to automatically generate the circles in the attached image, but I don't know if it's possible. Ideally, I'd select a few colors, and then I'd use canvas to create these stacked, semi-random, distorted circles. Could someone point me in the right direction? I've only used canvas to draw basic shapes, but haven't done layering or distortion...or masking.
circles.png
Avatar of ambience
ambience
Flag of Pakistan image

A mix of alpha-blending, masking, gradients could possibly make it work. I can only point you to some useful links.

http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/
http://kaioa.com/node/104
ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zumpoof
zumpoof

ASKER

Wow, thank you for putting the work into this, Tom. This is exactly what I was looking for.
You're welcome. It was fun. Thanks for the points.