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

2 ビュー (過去 30 日間)
TaeGeun
TaeGeun 2019 年 3 月 18 日
編集済み: TaeGeun 2019 年 3 月 18 日
xx
  3 件のコメント
TaeGeun
TaeGeun 2019 年 3 月 18 日
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 2019 年 3 月 18 日
I'm just trying to see how these colors change.

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2019 年 3 月 18 日
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 件のコメント
TaeGeun
TaeGeun 2019 年 3 月 18 日
編集済み: TaeGeun 2019 年 3 月 18 日
There should be colors in the overlapping parts like LED in yellow white... The three rectangles should overlap like image
TaeGeun
TaeGeun 2019 年 3 月 18 日
I'd appreciate it if you could give me the code again

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by