请输入您要查询的百科知识:

 

词条 Module:Color contrast/doc
释义

  1. Usage

{{module rating|release}}{{module rating|protected}}{{High-use|325916}}{{Lua|Module:Color contrast/colors}}

This module is used primarily by

{{tl|Color contrast ratio}}

{{tl|ColorToLum}} / {{tl|RGBColorToLum}}

{{tl|Color contrast conformance}}

{{tl|Ensure AAA contrast ratio}}

{{tl|Ensure AA contrast ratio}}

{{tl|Greater color contrast ratio}}

It is also used for tracking within

Navbox

Userbox

Episode list

and for documentation in

College color

Usage

To use this module, you may use one of the above listed templates or invoke the module directly

To compute relative luminescence

{{ColorToLum|color}} or {{#invoke:Color contrast|lum|color}}

To compute a contrast ratio between two colors

{{Color contrast ratio|color1|color2|error=?}} or {{#invoke:Color contrast|ratio|color1|color2|error=?}}

To determine which of two colors (color2a and color2b) has the greater contrast ratio with a particular color (color1)

{{Greater color contrast ratio|color1|color2a|color2b}} or {{#invoke:Color contrast|greatercontrast|color1|color2a|color2b}}

To compute the contrast ratio between the background and text colors specified in a css style string

{{#invoke:Color contrast|styleratio|css style statement string|default background color|default text color}}

{{#ifeq:{{SUBPAGENAME}}|sandbox||

}}

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/16 0:06:01