数学工作Blue Meets Air Force Academy Blue

I have always been fascinated by the names that are used to describe colors. There are dozens of web sites with lists of color names. I was surprised to discover that the shade of blue we use in MathWorks logo is almost the same as the one used by the United States Air Force Academy.

Contents

Mathworks徽标。

Here is the "official" type font and color for a MathWorks® logo.

清除m = imread('mw_logo.jpeg');M = imresize(M,1/6); imshow(M)

Let's retrieve the red, blue and green components of one pixel in the logo. This is MathWorks blue.

mw_blue = double(挤压(M(25,168,1:3))')show_rgb(mw_blue)
mw_blue = 1 86 150

这是一个中等蓝色的绿色,几乎没有红色。

Martin Krzywinski

Martin Krzywinskiis a biologist, mathematician and artist at Canada's British Columbia Cancer Agency, Genome Sciences Centre. As befits his name, he maintains acrazy web site, chock full of all kinds of science and art. In particular, he has collected a list of9,284 named colors来自数十个来源。列表包括940 Pantone Colors,印刷行业的标准,具有“名称”PMS2945-C.

我不会显示所有9284条目馆藏n. Here is a sample of just a few of them from near the middle of the list,

load克尔兹克尔兹namesrgbk = 5000:5020; sample = krzy(k,:)
sample = 21×4 table r g b name ___ ___ ___ ___________________________ 164 66 160 "ugly_purple" 164 90 82 "redwood" 164 97 58 "footloose" 165 0 85 "violet_red" 165 101 49 "mai_tai" 165 101 49 "style_pasifika_shore_sand" 165 105 79 "sepia" 165 107 109 "PMS4995" 165 11 94 "jazzberry_jam" 165 110 117 "turkish_rose" 165 113 100 "blast_off_bronze" 165 126 82 "puce" 165 139 111 "mongoose" 165 149 120 "triple_sisal" 165 149 145 "triple_milestone" 165 150 146 "asteroid" 165 151 132 "malta" 165 153 130 "routeburn" 165 154 168 "siesta" 165 155 145 "zorba" 165 156 85 "gingko"

I'm going to compute the $l_1$ vector norm of the differences between all the rgb triples in Krzywinski's list and MathWorks blue. This norm isn't exactly the best way to compute the distance between colors, but it's good enough here. (Notice the singleton expansion, a 9254-by-3 array minus a 1-by-3 array.)

e = sum(abs(rgb -mw_blue),2);

Let's say that two colors are close to each other if this distance is less than 20. Here are the nearby colors.

f = (e < 20); nearby = names(f) show_rgb([mw_blue; rgb(f,:)])
附近= 7×1字符串阵列“ usafa_blue”“ pms2945”“ eardeavor”“ pms301”“ peacock_blue”“ bahama_blue”“ edimend_electric_blue”

最接近的是usafa_blue,来自美国空军学院在科罗拉多斯普林斯。我没想到this.

usafa_blue = rgb(find(f,1),:) distance = e(find(f,1))
usafa_blue = 0 79 152距离= 10

Dodger Blue

I actually got started looking for these color matches by using the Krzywinski color lookup web service.

query_url ='http://mkweb.bcgsc.ca/colornames/namethatcolor/?';query = [query_url'rgb='sprintf('%d,',mw_blue)];Web(查询)

根据该服务使用的任何标准,这是附近的颜色。

类型响应.txt
dodger_blue(3.7)dusk_blue(4.4)bedazzled_blue(4.9)cyan_cobalt_blue(5.0)edim_electric_blue(5.5)lapis_lazuli(5.5)yale_blue(6.3)

I was intrigued by the appearance ofdodger_blueyale_blue在此列表中。如果您还没有听说过,道奇队是美国最好的棒球队之一,不在波士顿或纽约市,耶鲁大学是位于波士顿附近或旧金山湾区的美国更好的大学之一。

There are fivedodger_blue在列表中

f = (names =='dodger_blue');show_rgb([mw_blue; rgb(f,:)])

There is only oneyale_blue

f = (names =='yale_blue');show_rgb([mw_blue; rgb(f,:)])

XKCD

XKCDis a brilliant web comic strip that Randall Munroe started大约15年前。芒罗更严重的项目之一是XKCDcolor model.他调查了超过22万人,要求他们命名颜色。这产生了这些954 named colors.

你可以download the list.

loadXKCDnamesrgb

Which colors are close to MathWorks blue?

e = sum(abs(rgb -mw_blue),2);f = find(e <72);附近=名称(f)
nearby = 23×1 string array "deep_turquoise" "deep_aqua" "dusk_blue" "deep_sea_blue" "petrol" "twilight_blue" "dark_aquamarine" "deep_teal" "peacock_blue" "light_navy" "light_navy_blue" "prussian_blue" "darkish_blue" "denim_blue" "teal_blue“”“海洋”“ bluegreen”“ dark_aqua”“ dark_cyan”“ cobalt”“ dark_turquoise”“ ocean_blue”“ sea_blue”

他们有多近?

show_rgb([mw_blue; rgb(f,:)])

不太接近。实际上,XKCD列表已经包含在Krzywinski列表中。

usafa_blue

我发现的最接近usafa_blue

mw_blue usafa_blue show_rgb([mw_blue; usafa_blue])
mw_blue = 1 86 150 usafa_blue = 0 79 152

show_rgb

如果您想自己做。

类型show_rgb
function show_rgb(rgb) if any(max(rgb) > 1) rgb = double(rgb)/255; end n = size(rgb,1); set(gcf,'pos',[500 500 420 100*ceil(n/8)]) clf axis([0 1 0 1/8]) axis equal axis off noticks for k = 1:n patch([0 1 1 0 0]/9 + mod(k-1,8)/8, ... [0 0 1 1 0]/9 - .15*floor((k-1)/8), ... rgb(k,:)) end end




Published with MATLAB® R2019b

|

注释

要发表评论,请单击这里登录您的数学帐户或创建一个新帐户。