2000 palettes

2000 palettes for MATLAB
951 Downloads
Updated 31 Mar 2023

View License

2000 palettes for MATLAB
## 基本使用(Basic use)
以下先说明代码咋用,最基础的用法就是:
The following first explains how to use the code. The most basic usage is:
  • slanCL(n)
就是选择slanCL包的第n套配色:
Is to choose the nth set of colors for the slanCL package:
CList=slanCL(617)
% CList =
% 0.3059 0.4745 0.6549
% 0.9490 0.5569 0.1686
% 0.8824 0.3412 0.3490
% 0.4627 0.7176 0.6980
% 0.3490 0.6314 0.3098
% 0.9294 0.7882 0.2824
% 0.6902 0.4784 0.6314
% 1.0000 0.6157 0.6549
% 0.6118 0.4588 0.3725
% 0.7294 0.6902 0.6745
第二种用法有俩参数:
The second usage has two parameters:
  • slanCL(n,Ind)
Ind可以是一个数值,也可以是一个向量:
Ind can be a numeric value or a vector:
CList=slanCL(617,[1,3,5,7,9])
% CList =
% 0.3059 0.4745 0.6549
% 0.8824 0.3412 0.3490
% 0.3490 0.6314 0.3098
% 0.6902 0.4784 0.6314
% 0.6118 0.4588 0.3725
若是向量中的数值大于配色所含颜色数,依旧能取到颜色,不过颜色亮度变为前一轮颜色90%:
If the value in the vector is greater than the number of colors included in the color matching, the color can still be obtained, but the color brightness changes to 90% of the previous round of colors:
CList=slanCL(617,1:80);
可以看到数值越大颜色越暗:
You can see that the larger the value, the darker the color:
配色筛选器(Color Filter)
选择来源库:
Select a source package:
类型选择:
Select Type:
颜色数量选择:
Select the number of colors:
拖动滑动条:
Drag the slider:
一些使用配色的例子(Some examples of using color matching)

Cite As

Zhaoxu Liu / slandarer (2024). 2000 palettes (https://www.mathworks.com/matlabcentral/fileexchange/126969-2000-palettes), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.1

Updated web tutorials

1.0.0