-
Notifications
You must be signed in to change notification settings - Fork 2
/
clr.m
50 lines (48 loc) · 1.57 KB
/
clr.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
classdef clr
% A class that define nice colors for graphs
% usage clr."color name", e.g.
% clr.gum_pink
properties(Constant)
carribean_blue = [ 0.4000 0.6500 0.9000];
pastel_blue = [0.4000 0.6500 0.9000].^2;
navy_blue = [0 0 128 ]/255;
gray_sky_blue = [96 123 139 ]/255;
gum_pink = [1.0000 0.4000 0.9000];
gray_pink = [139 95 101 ]/255;
brown_orange = [0.9000 0.6500 0.4000];
pastel_red = [0.9000 0.4000 0.4000];
indian_red = [ 176 23 31 ]/255;
purple_wine = [0.6500 0.4000 0.6500];
forest_green = [34 139 34 ]/255;
dark_olive_green = [85 107 47 ]/255;
num = [[ 0.4000 0.6500 0.9000] ;
[0.4000 0.6500 0.9000].^2;
[0 0 128 ]/255;
[96 123 139 ]/255;
[1.0000 0.4000 0.9000];
[139 95 101 ]/255;
[0.9000 0.6500 0.4000];
[0.9000 0.4000 0.4000];
[ 176 23 31 ]/255;
[0.6500 0.4000 0.6500];
[34 139 34 ]/255;
[85 107 47 ]/255;];
end
methods(Static)
function n = clr_num()
n = size(clr.num,1);
end
function cmap = map_darkpink()
tmp = pink;
cmap = tmp(1:32,:);
end
function cmap = map_brown_yellow()
tmp = pink;
cmap = tmp(1:48,:).^2;
end
function cmap = map_brown_yellow2()
tmp = pink;
cmap = tmp(32:60,:).^4;
end
end
end