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

2 Ansichten (letzte 30 Tage)
TaeGeun
TaeGeun am 18 Mär. 2019
Bearbeitet: TaeGeun am 18 Mär. 2019
xx
  3 Kommentare
TaeGeun
TaeGeun am 18 Mär. 2019
I dont know any codes expect (0,255,0)(255,0,0)(0,0,255) please make that overlaped rect with any code
TaeGeun
TaeGeun am 18 Mär. 2019
I'm just trying to see how these colors change.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 18 Mär. 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 Kommentare
TaeGeun
TaeGeun am 18 Mär. 2019
Bearbeitet: TaeGeun am 18 Mär. 2019
There should be colors in the overlapping parts like LED in yellow white... The three rectangles should overlap like image
TaeGeun
TaeGeun am 18 Mär. 2019
I'd appreciate it if you could give me the code again

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by