필터 지우기
필터 지우기

How to make a colour picker similar to this one in Matlab?

조회 수: 5 (최근 30일)
Salad Box
Salad Box 2019년 5월 16일
편집: Salad Box 2019년 5월 17일
Hi,
Below is the screenshots for a commercial colour picker available online.
The good thing about designing the colour picker in this fashion is that everything is all on the same page. Users don't have to go through different pages/channels to select a different colour. All they need to do is to first move the circle on the slider bar to the hue they want(red, green, purple), then move the position of the upper circle to fine tuning which exact blue he wants.
How to achieve something very similar to this in Matlab? Any thoughts?
P.s. It also needs to be able to be built-in/integrated in the GUI instead of stand-alone piece like 'uisetcolor'.

채택된 답변

Jan
Jan 2019년 5월 16일
편집: Jan 2019년 5월 16일
This looks similar to the built-in uisetcolor of R2019b, see https://www.mathworks.com/help/matlab/ref/uisetcolor.html -> Select a Color from a Gradient
I assume you find the corresponding code in this function.
  댓글 수: 1
Salad Box
Salad Box 2019년 5월 17일
편집: Salad Box 2019년 5월 17일
Hi Jan,
Thanks for your reply. I have already looked into the uisetcolor. It has two tabs. First tab shows individual colours and second tab shows gradient colours.
I expect to only present gradient colours without my participants looking at any individual colours in the first tab. I simply would like to remove the first tab in uisetcolor. But I don't know how to achieve it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by