-
Notifications
You must be signed in to change notification settings - Fork 0
/
confusionLines.m
36 lines (25 loc) · 713 Bytes
/
confusionLines.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
clc, clear, close all
%% Copunctal Points
% https://www.color-blindness.com/2009/01/19/colorblind-colors-of-confusion/
% Wyszecki & Stiles, Color Science (2nd ed.), 1982, Table 1 (5.14.2) p. 464
% Protan 0.747 0.253
% Deutan 1.080 -0.800
% Tritan 0.171 0.000
%%
CP = [0.747, 0.253];
DrawChromaticity
scatter(CP(1),CP(2),'k*');
axis tight
%%
interval = 10; %degrees interval for confusion lines
degs = 90:interval:360;
H = 1; %hypotenuse (line length)
for i = 1:length(degs)
O = sind(degs(i))*H;
A = cosd(degs(i))*H;
line(:,1,i) = linspace(CP(1),CP(1)+O,100);
line(:,2,i) = linspace(CP(2),CP(1)+A,100);
plot(line(:,1,i),line(:,2,i),'k')
drawnow
end
% something is weird...