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

4 views (last 30 days)
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 Comments
Adam
Adam on 11 Jan 2021
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 on 12 Jan 2021
I want to define different colors with angles in polar coordinates.

Sign in to comment.

Answers (1)

KSSV
KSSV on 11 Jan 2021
[X,Y,Z] = sphere;
surf(X,Y,Z)
colorbar
  1 Comment
shuang lei
shuang lei on 11 Jan 2021
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.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!