Coding colors with the use of combing matrices

1 回表示 (過去 30 日間)
dunphy
dunphy 2021 年 11 月 17 日
回答済み: Dave B 2021 年 11 月 17 日
How do I make a code that will mix R,G,B matrices to form yellow, orange and pink?

回答 (1 件)

Dave B
Dave B 2021 年 11 月 17 日
One thing you could do is use uisetcolor to pick the exact shade of yellow orange and pink you like
Another thing you could do is search for hex codes:
You can then use the validatecolor function to convert the hex codes to RGB:
validatecolor(["#FFFF00" "#FFC0CB" "#FFA500"],'multiple')
ans = 3×3
1.0000 1.0000 0 1.0000 0.7529 0.7961 1.0000 0.6471 0

Community Treasure Hunt

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

Start Hunting!

Translated by