How to make a color sphere as colorbar in 3D image

6 次查看(过去 30 天)
I‘m looking to create a color sphere with different colors in all directions, and use these colors as the colorbar of the 3D image
  2 个评论
Adam
Adam 2021-1-11
I'm not aware of any colour space that is defined over a sphere. How do you intend the sphere to be populated with colour?
shuang lei
shuang lei 2021-1-12
I want to define different colors with angles in polar coordinates.

请先登录,再进行评论。

回答(1 个)

KSSV
KSSV 2021-1-11
[X,Y,Z] = sphere;
surf(X,Y,Z)
colorbar
  1 个评论
shuang lei
shuang lei 2021-1-11
Thank you for your answer. I want to make a three-dimensional velocity direction map of particles, and use the color of the color sphere to represent the flow direction at all angles.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Blue 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by