Effacer les filtres
Effacer les filtres

Color a trisurf with general color?

7 vues (au cours des 30 derniers jours)
David Pesetsky
David Pesetsky le 26 Juil 2016
Commenté : David Pesetsky le 26 Juil 2016
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

Réponse acceptée

Alex
Alex le 26 Juil 2016
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')

Plus de réponses (0)

Catégories

En savoir plus sur 3-D Scene Control dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by