patches and overlapping alpha values

조회 수: 5 (최근 30일)
Matthew
Matthew 2012년 6월 1일
Hello,
I wrote code that creates two patch objects which overlap each other. Basically, two circles, one (circle A) at the center of the other (circle B). Both have a face value of .35. Circle A is red and circle B is blue. However, when I set’ facealpha’ property while using the patch command, the colors add up, meaning that circle B is the alpha blue that I want, but circle A is an alpha purple (the alpha red and alpha blue added together). Is there a way to get circle A looking red again? My original plan is to "cut out" circle A then patch circle B, followed by patching circle A.
  댓글 수: 9
Ryan
Ryan 2012년 6월 5일
The blue element is being placed on top of the other two elements. if you view just the blue circle and the non-transparent white circle, you'll note it still has a blue hue. I am unsure of how to order patches or if it is even possible.
Matthew
Matthew 2012년 6월 6일
I ended up find a color that would simulate the light blue and red I was looking for, then plotted grid lines using Xtick and Ytick to get the effect I was looking for. Thanks to everyone for their advice and help.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by