how can one create a new color?

조회 수: 1 (최근 30일)
alpedhuez
alpedhuez 2020년 8월 13일
답변: Walter Roberson 2020년 8월 13일
I create a new color (that is, a new RGB setting). How can one save it as a new color so that I do not need to type RGB each time?
  댓글 수: 1
KSSV
KSSV 2020년 8월 13일
Read about colormap.

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

답변 (1개)

Walter Roberson
Walter Roberson 2020년 8월 13일
You can create a function that returns the rgb triple. There are also some approaches involving a class with static methods that would allow you to pack multiple items in one classdef
Unfortunately there is no way to add a new single letter color code such as 'r', no way to extend those to say that 'e' is 'emerald' for example: those are built in several places in the software.

카테고리

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