Skip to content

Commit

Permalink
[css-color-5] better labelling on diagrams, #7691
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Sep 5, 2022
1 parent afb492b commit 46aa862
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
13 changes: 10 additions & 3 deletions css-color-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ and a percentage of 100% returns the same color converted to the specified color

<pre class="lang-css">color-mix(in lch, peru 40%, palegoldenrod)</pre>

The mixing is done in ''lch()'' color space.
The mixing is done in ''lch'' color space.
Here is a top-down view, looking along the neutral L axis:

<figure id="fig-LCH-peru-goldenrod">
<object data="images/CH-mixing.svg" width=480 height=480>
<p>A mixture of two colours, and the mixed output.
We are looking down the CIE L axis onto the ab plane.
There are two axes, labelled 'a' and 'b'
There are two axes, labelled <em>a</em> and <em>b</em>
which cross at the origin,
which is in the centre of the plot.</p>
</object>
Expand Down Expand Up @@ -278,7 +278,14 @@ and a percentage of 100% returns the same color converted to the specified color
<pre class="lang-css">color-mix(in lch, teal 65%, olive);</pre>

<figure id="fig-LCH-teal-olive">
<img src="images/CH-mixing3.svg" width=500 height=500>
<object data="images/CH-mixing3.svg" width=500 height=500>
<p>A mixture of two colours, and the mixed output.
We are looking down the CIE L axis onto the ab plane.
There are two axes, labelled <em>a</em> and <em>b</em>
which cross at the origin,
which is in the centre of the plot.
</p>
</object>
<figcaption>Mixtures of teal and olive.
Teal has a hue angle, measured from the positive a axis,
of 196.4524 degrees
Expand Down
6 changes: 3 additions & 3 deletions css-color-5/images/CH-mixing.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion css-color-5/images/CH-mixing3.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 46aa862

Please sign in to comment.