action.ColorArray
类型
用于定义 RGBA 颜色的四个范围在 0-255 间的整型的 array
。四个值分别指定了以下通道:
- 红
- 绿
- 蓝
- Alpha(不透明度)
比如,不透明的红色是 [255, 0, 0, 255]
。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
ColorArray |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
备注:
该 API 基于 Chromium 的 chrome.action
API。本文衍生于 Chromium 代码中的 browser_action.json
。