How to fill a circle with different sized circles
조회 수: 6 (최근 30일)
이전 댓글 표시
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
채택된 답변
Image Analyst
2022년 9월 23일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!