TEXTURE / 079

Multiply blend

乗算で重ねる
前後の色を乗算し、重なる部分を暗く合成します。

実際のHTML・CSSで描かれた見本です。

ラボで詳しく試す ↗

ひとつ試すなら

どこが変わるかを観察して、似た表現と見比べてみよう。

こんなときに

インクの重なりや、色付きのレイヤー。

仕組みと使い方

合成対象を区切りたいときはisolationも確認します。

乗算multiplyインク重なる
実装コードを見る
<style>
.sample{width:100%;height:100%;min-height:190px;display:grid;place-items:center;position:relative;overflow:hidden;box-sizing:border-box;font-family:Arial,'Hiragino Kaku Gothic ProN',Meiryo,sans-serif;color:#20211d;background:#f1f0e9;padding:22px}.sample *{box-sizing:border-box}.sample button,.sample input,.sample summary{font:inherit}.sample button,.sample summary,.sample label{touch-action:manipulation}.sample :focus-visible{outline:3px solid #6050bf;outline-offset:5px}.sample small{font-size:10px;line-height:1.5}.sample .editable{margin:0}.sample svg{max-width:100%;height:auto}
.sample .blend{position:relative;width:210px;height:130px;isolation:isolate;background:white}.sample i{position:absolute;width:98px;height:98px;top:15px;border-radius:50%;background:#f48e66;mix-blend-mode:multiply;left:8px}.sample i:nth-child(2){left:57px;background:#a8cfea}.sample i:nth-child(3){left:106px;background:#e5e96b}
</style>
<div class="sample">
<div class="blend"><i></i><i></i><i></i></div>
</div>