How to fill only half of the rectangle with any color?
조회 수: 5 (최근 30일)
이전 댓글 표시
Chandra Kishore Danduri
2018년 1월 30일
답변: Harish Ramachandran
2018년 2월 2일
How to fill only half of the rectangle with any color?
채택된 답변
Harish Ramachandran
2018년 2월 2일
Something which I would try is to fill the entire rectangle A.
Modify the rectangle A's position properties to be halved (depending on which half). Now create a second rectangle B which is transparent (no fill) to start from the boundary of rectangle A.
Now you'll have two rectangles. However, it gives an illusion that it is a single rectangle in your application / use case.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!