필터 지우기
필터 지우기

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')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 3-D Scene Control에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by