How to fill a circle with different sized circles
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Salad Box
le 23 Sep 2022
Réponse apportée : Image Analyst
le 23 Sep 2022
Hi
I would like to create something very similar to this with packcircles. All I have is the background colours and foreground colours.
I am aware that there are some resources about how to fill a square with circles. https://uk.mathworks.com/matlabcentral/answers/405186-fill-area-with-random-circles-having-different-diameters
But I am not very familiar with the rejection sampling principle.
Any code with a bit more comments to help me to understand how this is achieved would be much appreciated.
0 commentaires
Réponse acceptée
Image Analyst
le 23 Sep 2022
There are 24 posts on circle packing:
Can you not figure out how to create one? By the way, you can use rectangle() to draw a color circle of a specified color.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!