How to make overlaped 3 rectangle fill in color RGB (255/ make white)

2 views (last 30 days)
xx
  3 Comments
TaeGeun
TaeGeun on 18 Mar 2019
I dont know any codes expect (0,255,0)(255,0,0)(0,0,255) please make that overlaped rect with any code

Sign in to comment.

Answers (1)

KSSV
KSSV on 18 Mar 2019
R = [0 0 ; 1 0 ; 1 1 ; 0 1] ;
figure
hold on
patch(R(:,1),R(:,2),'r')
patch(R(:,1)+rand,R(:,2)+rand,'b')
patch(R(:,1)+rand,R(:,2)+rand,'g')
  2 Comments
TaeGeun
TaeGeun on 18 Mar 2019
Edited: TaeGeun on 18 Mar 2019
There should be colors in the overlapping parts like LED in yellow white... The three rectangles should overlap like image

Sign in to comment.

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!