フィルターのクリア

Color a trisurf with general color?

7 ビュー (過去 30 日間)
David Pesetsky
David Pesetsky 2016 年 7 月 26 日
コメント済み: David Pesetsky 2016 年 7 月 26 日
Hello,
I am using Facecolor:
trisurf(ksurf,x,y,z,'Facecolor','red','FaceAlpha',.1,'EdgeColor','none')
to color a surface. I'd like to be able to specify more general colors, from the 0-255 RGB style. Is that possible?
Thanks a lot, Dave

採用された回答

Alex
Alex 2016 年 7 月 26 日
Set your color doing something like this: gold = [218/255 168/255 32/255]; Look up the specific RGB values for the color you want, put them in the array ordered RGB, dividing the color values by 255, then you should be set to use that color. Then make the same call you used before replacing the color: trisurf(ksurf,x,y,z,'Facecolor',gold,'FaceAlpha',.1,'EdgeColor','none')
  1 件のコメント
David Pesetsky
David Pesetsky 2016 年 7 月 26 日
Perfect.

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange3-D Scene Control についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by