-
Notifications
You must be signed in to change notification settings - Fork 12
/
about.html
104 lines (102 loc) · 4.47 KB
/
about.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>RYB Color Wheel Information</title>
<link href="css/style.css" rel="stylesheet">
<style>
p, h1, h2, h3, h4, h5, h6, img {
margin: 15px;
}
h1, h2, h3, h4, h5, h6 {
color: #fd7;
}
h1 {
border-bottom: 1px dashed gray;
}
ul {
margin-left: 20px;
margin-bottom: 5px;
}
ul li {
margin-bottom: 5px;
}
#link-back {
position: fixed;
left: 10px;
top: 10px;
}
#container {
width: 850px;
margin-right: auto;
margin-left: auto;
}
</style>
</head>
<body>
<div id="container">
<h1>RYB Color Picker</h1>
<p>
See <a href="http://daveeddy.com/2014/07/01/red-yellow-and-blue/">this blog post</a> for a detailed explanation of the desgin process of this color picker and algorithm
</p>
<h1>Computer and Printing Color Models</h1>
<p>
RGB, or red, green, and blue, are the primary colors of your computer, or more accurately your monitor.
The <a href="https://en.wikipedia.org/wiki/Rgb">RGB color model</a> is an additive color model where red, greed, and blue lights are added together to
create different colors. All colors added together (<code>#ffffff</code>, or 100% red, 100% green, and 100% blue) will result in white.
</p>
<p>
The <a href="https://en.wikipedia.org/wiki/CMYK_color_model">CMYK color model</a>, by contrast, is a subtractive color model
using 3 colors, cyan, magenta, and yellow, and a 4th value for black. All colors added together, because it is a subtractive color model,
will result in black. K, or black, is added for printing, as it easier (and cheaper) to attain a true black by not mixing all three other inks together.
This color model is used typically for printing.
</p>
<h1>The RYB Color Model</h1>
<p>
The <a href="https://en.wikipedia.org/wiki/RYB_color_model">RYB color wheel</a> uses red, yellow, and blue as the primary colors; this is the color model
that is used for the <a href="./">RYB Color Picker</a>. For details on how this model is rendered on the computer, so the <a href="#how">How</a> section below.
</p>
<h2>RYB vs RGB</h2>
<p>
Which one looks better? The image on the right is a color wheel generated from the RGB color space, whereas the image on the left is run through the converter from RYB to RGB.
</p>
<img src="assets/ryb-wheel.png" alt="RYB" />
<img src="assets/rgb-wheel.png" alt="RGB" />
<h1 id="how">How</h1>
<p>
Colors on a computer are typical seen as hex, such as <code>#ff00ff</code> which represnts purple; Hex is used here a way of encoding RGB data (as explained above).
To convert this to RYB, a conversion is done that may seem counter intuitive. The color <code>#00ff00</code>, which represents 0% red, 100% green, and 0% blue in the
RGB color space (green) becomes the color <code>#00ff00</code>, which represents 0% red, 100% yellow, 0% blue in the RYB color space (yellow). We then, must convert that
color, as it is given in RYB, to RGB.
</p>
<p>
The conversion algorithm can be seen in <a href="https://github.com/bahamas10/ryb/blob/gh-pages/js/RXB.js#L252-L330">these lines of code</a>, and is also summed up in in this paper,
<a href="assets/ryb.pdf">ryb.pdf</a> by Dr. Nathan Gossett and Dr. Baoquan Chen of the <a href="http://umn.edu">University of Minnesota at Twin Cities</a>
</p>
<p>
The image below shows the "Magic Colors" from the ryb2rgb algorithm in the above source code.
</p>
<img src="assets/magic-colors.png" alt="Magic Colors" />
<h1>About</h1>
<ul>
<li>The conversion algorithm can be seen in <a href="https://github.com/bahamas10/ryb/blob/gh-pages/js/RXB.js#L252-L330">these lines of code</a></li>
<li>A paper on ryb color space mixing - <a href="assets/ryb.pdf">ryb.pdf</a> by
<ul>
<li>Dr. Nathan Gossett of the <a href="http://umn.edu">University of Minnesota at Twin Cities</a></li>
<li>Dr. Baoquan Chen of the <a href="http://umn.edu">University of Minnesota at Twin Cities</a></li>
</ul>
</li>
<li>Idea and Inspiriation
<ul>
<li><a href="http://skyeillustration.com">Skye Illustration</a></li>
</ul>
</li>
</ul>
<br />
<small><a href="https://github.com/bahamas10/ryb">Hosted on GitHub</a> - © <a href="http://www.daveeddy.com">bahamas10</a> - MIT License</small>
<br />
<br />
<br />
</div>
<a href="./" id="link-back">← Color Wheel</a>
</body>
</html>