|
428 | 428 | ●●options |
429 | 429 |
|
430 | 430 | spec_title:CSS Color Module Level 4 |
431 | | -spec_date:2026-03-26 |
432 | | -trans_update:2026-03-28 |
| 431 | +spec_date:2026-03-31 |
| 432 | +trans_update:2026-04-01 |
433 | 433 | source_checked:250316 |
434 | 434 | page_state_key:CSS |
435 | 435 | original_url:https://drafts.csswg.org/css-color-4/ |
|
784 | 784 | ~Oklab:#ok-lab |
785 | 785 | ~OkLCh色~空間:#ok-lab |
786 | 786 |
|
| 787 | +色を変換~用に準備する:#prepare-a-color-col1-for-conversion |
| 788 | +色を変換する:#convert-a-color |
| 789 | + |
787 | 790 | 色域~対応付け:#gamut-mapping |
788 | 791 | ~CSS色域~対応付け:#css-gamut-mapped |
789 | 792 | ~CSS色域~対応付け~algo:#css-gamut-mapping-algorithm |
@@ -9203,23 +9206,63 @@ <h2 title="Converting Colors">11. 色の変換-法</h2> |
9203 | 9206 |
|
9204 | 9207 | <div class="algo"> |
9205 | 9208 | <p> |
9206 | | -`色~空間$ %~source に属する色 %~source色 を`色~空間$ %行先 に属する色へ変換するときは、 |
9207 | | -次に従うモノトスル: |
| 9209 | +`色を変換~用に準備する@ |
| 9210 | +~algoは、 |
| 9211 | +所与の |
| 9212 | +( 色 %~source色 ) |
| 9213 | +に対し: |
9208 | 9214 | ◎ |
9209 | | -To convert a color col1 in a source color space src with white point src-white to a color col2 in destination color space dest with white point dest-white: |
| 9215 | +To prepare a color col1 for conversion: |
9210 | 9216 | </p> |
9211 | 9217 | <ol> |
| 9218 | + <li id="powerless-to-missing"> |
| 9219 | +%~source色 を成す各`無力$な成分を`欠落~色~成分$に変更する |
| 9220 | +◎ |
| 9221 | +Change any powerless components in src to missing components |
| 9222 | +</li> |
9212 | 9223 | <li id="convert-polrect"> |
9213 | 9224 | ~IF[ |
9214 | | -%~source は`円柱な極-座標$で表現される |
| 9225 | +%~source色 が属する色~空間は`円柱な極-座標$で表現される |
9215 | 9226 | ] |
9216 | 9227 | ⇒ |
9217 | | -%~source色 ~SET %~source色 を %~source に対応する`矩形な直交-座標$で表現される色~空間へ変換した結果 |
| 9228 | +%~source色 ~SET %~source色 を対応する`矩形な直交-座標$で表現される色~空間へ変換した結果 |
9218 | 9229 | ◎ |
9219 | | -If src is in a cylindrical polar color representation, first convert col1 to the corresponding rectangular orthogonal color representation and let this be the new col1. |
| 9230 | +If src is in a cylindrical polar color representation, convert col1 to the corresponding rectangular orthogonal color representation and let this be the new col1. |
| 9231 | +</li> |
| 9232 | + <li> |
| 9233 | +~RET %~source色 |
| 9234 | +◎ |
| 9235 | +↑</li> |
| 9236 | +</ol> |
| 9237 | +</div> |
| 9238 | + |
| 9239 | +<div class="algo"> |
| 9240 | +<p> |
| 9241 | +`色を変換する@ |
| 9242 | +~algoは、 |
| 9243 | +所与の |
| 9244 | +( 色 %~source色, `色~空間$ %行先 ) |
| 9245 | +に対し: |
| 9246 | +◎ |
| 9247 | +To convert a color col1 in a source color space src with white point src-white to a color col2 in destination color space dest with white point dest-white, where src and dest are different: |
| 9248 | +</p> |
| 9249 | +<ol> |
| 9250 | + <li> |
| 9251 | +%~source ~LET %~source色 が属する色~空間 |
| 9252 | +◎ |
| 9253 | +↑</li> |
| 9254 | + <li> |
| 9255 | +~Assert: |
| 9256 | +%~source と %行先 は異なる色~空間である。 |
| 9257 | +◎ |
| 9258 | +↑</li> |
| 9259 | + <li> |
| 9260 | +%~source色 ~SET `色を変換~用に準備する$( %~source色 ) |
| 9261 | +◎ |
| 9262 | +prepare col1 for conversion |
9220 | 9263 | </li> |
9221 | 9264 | <li id="convert-missing"> |
9222 | | -【 %~source色 を成す】`欠落~色~成分$を 0 に置換する |
| 9265 | +%~source色 を成す各`欠落~色~成分$を 0 に置換する |
9223 | 9266 | ◎ |
9224 | 9267 | Replace any missing component with zero. |
9225 | 9268 | </li> |
@@ -9349,13 +9392,17 @@ <h2 title="Color Interpolation">12. 色~補間</h2> |
9349 | 9392 | checking the two colors for analogous components which will be carried forward |
9350 | 9393 | </li> |
9351 | 9394 | <li> |
9352 | | -`補間~色~空間$へ変換する |
9353 | | -— この変換は、 |
9354 | | -すでに`補間~色~空間$に属する色に対しても,`無力$な成分を`欠落~色~成分$へ変更する。 |
| 9395 | +`色を変換~用に準備する$ |
| 9396 | +— これは、 |
| 9397 | +当の色を成す各`無力$な成分を`欠落~色~成分$へ変更する。 |
9355 | 9398 | ◎ |
9356 | | -converting them to a given color space\ |
9357 | | -↑ which will be referred to as the interpolation color space below.\ |
9358 | | -If one or both colors are already in the interpolation color space, this conversion changes any powerless components to missing values |
| 9399 | +prepare both colors for conversion. this changes any powerless components to missing values |
| 9400 | +</li> |
| 9401 | + <li> |
| 9402 | +`補間~色~空間$へ変換する。 |
| 9403 | +◎ |
| 9404 | +converting them both to a given color space\ |
| 9405 | +↑ which will be referred to as the interpolation color space below. |
9359 | 9406 | </li> |
9360 | 9407 | <li> |
9361 | 9408 | 変換された色に`先へ運ばれ$た成分【!値】たちを(もしあれば)挿入し直す。 |
@@ -16047,6 +16094,12 @@ <h2 title="Changes">変更点</h2> |
16047 | 16094 | Changes since the Candidate Recommendation Draft of 24 April 2025 |
16048 | 16095 | </dt> |
16049 | 16096 | <dd> |
| 16097 | +色~変換を 2 段階を経るよう分割した。 |
| 16098 | +( `10211$issue ) |
| 16099 | +◎ |
| 16100 | +Split color conversion into two stages (Issue 10211) |
| 16101 | +</dd> |
| 16102 | + <dd> |
16050 | 16103 | `~system色$が`使用~色~scheme$にどう反応するかを明確化した。 |
16051 | 16104 | ( `13719$issue ) |
16052 | 16105 | ◎ |
|
0 commit comments