Is there any possible way to generate a multi-color blur gradation depends on an image via Processing?
For example, the lyrics UI background of Apple Music. It’s auto-generated from CD jacket image.
Hello @Soh,
The way I would go about it would be to first do some color quantization of your main image. With that process you should be left with 2 or 3 main colors.
Then, I would use some voronoi like method to randomly fill the space with the 2 or 3 previously found colors.
Finally, I would apply a gaussian blur using a really big radius to soften all the transition a have nice gradients.
Really cool project, I might also give it a go if I have time
Hello,
One of the best tools in a programmers tool chest is knowing the resources available to you and learning to navigate, filter and use them.
This is a very short list:
Resources < Click here to expand !
I encourage you to review the resources available here:
- The Processing website has references, examples, tutorials, etc.
https://processing.org/ - The Processing PDE (IDE) has lots to offer!
An exploration of the tabs will reveal what is available; libraries, tools and local examples there. - The Coding Train
https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1_aw
https://thecodingtrain.com/ - Happy Coding
https://happycoding.io/tutorials/processing/ - The source code can give insight if you are adventurous:
https://github.com/processing/processing
Many of the Processing functions are here:
https://github.com/processing/processing/blob/master/core/src/processing/core/PApplet.java - The Processing Foundation
https://processingfoundation.org/
Check out the tabs.
In the education tab, there is a reference to the Coding Train. - And the Internet.
:)
From above:
https://processing.org/examples/blur.html
https://www.processing.org/reference/filter_.html
https://processing.org/reference/PImage_filter_.html
https://processing.org/reference/PShader.html
I stopped there…
:)