当前位置:网站首页>uni 小程序腾讯地图polygon背景透明度
uni 小程序腾讯地图polygon背景透明度
2022-08-10 07:12:00 【你的美,让我痴迷】
18c1831a #18c1831代表颜色,1a代表10%透明度
100% — FF
99% — FC
98% — FA
97% — F7
96% — F5
95% — F2
94% — F0
93% — ED
92% — EB
91% — E8
90% — E6
89% — E3
88% — E0
87% — DE
86% — DB
85% — D9
84% — D6
83% — D4
82% — D1
81% — CF
80% — CC
79% — C9
78% — C7
77% — C4
76% — C2
75% — BF
74% — BD
73% — BA
72% — B8
71% — B5
70% — B3
69% — B0
68% — AD
67% — AB
66% — A8
65% — A6
64% — A3
63% — A1
62% — 9E
61% — 9C
60% — 99
59% — 96
58% — 94
57% — 91
56% — 8F
55% — 8C
54% — 8A
53% — 87
52% — 85
51% — 82
50% — 80
49% — 7D
48% — 7A
47% — 78
46% — 75
45% — 73
44% — 70
43% — 6E
42% — 6B
41% — 69
40% — 66
39% — 63
38% — 61
37% — 5E
36% — 5C
35% — 59
34% — 57
33% — 54
32% — 52
31% — 4F
30% — 4D
29% — 4A
28% — 47
27% — 45
26% — 42
25% — 40
24% — 3D
23% — 3B
22% — 38
21% — 36
20% — 33
19% — 30
18% — 2E
17% — 2B
16% — 29
15% — 26
14% — 24
13% — 21
12% — 1F
11% — 1C
10% — 1A
9% — 17
8% — 14
7% — 12
6% — 0F
5% — 0D
4% — 0A
3% — 08
2% — 05
1% — 03
0% — 00
封装一个文件:
//0-100的透明度对应值
export const opacityFun = val => {
var arrlist = [
'FF',
'FC',
'FA',
'F7',
'F5',
'F2',
'F0',
'ED',
'EB',
'E8',
'E6',
'E3',
'E0',
'DE',
'DB',
'D9',
'D6',
'D4',
'D1',
'CF',
'CC',
'C9',
'C7',
'C4',
'C2',
'BF',
'BD',
'BA',
'B8',
'B5',
'B3',
'B0',
'AD',
'AB',
'A8',
'A6',
'A3',
'A1',
'9E',
'9C',
'99',
'96',
'94',
'91',
'8F',
'8C',
'8A',
'87',
'85',
'82',
'80',
'7D',
'7A',
'78',
'75',
'73',
'70',
'6E',
'6B',
'69',
'66',
'63',
'61',
'5E',
'5C',
'59',
'57',
'54',
'52',
'4F',
'4D',
'4A',
'47',
'45',
'42',
'40',
'3D',
'3B',
'38',
'36',
'33',
'30',
'2E',
'2B',
'29',
'26',
'24',
'21',
'1F',
'1C',
'1A',
'17',
'14',
'12',
'0F',
'0D',
'0A',
'08',
'05',
'03',
'00'
]
//只能为数字类型
const numval = parseInt(val)??1
//导出数据
return arrlist[100 - numval]
}
边栏推荐
- 一文2600字手把手教你编写性能测试用例
- 时序动作定位 | ASM-Loc:弱监督时序动作定位的动作感知片段建模(CVPR 2022)
- 34. 谈谈为什么要拆分数据库?有哪些方法?
- The constraints of the database learning table
- Nude speech - lying flat - brushing questions - big factory (several tips for Android interviews)
- 图像处理用什么神经网络,神经网络提取图片特征
- 2022 Henan Mengxin League No. 5: University of Information Engineering J-AC Automata
- DGIOT三千万电表集抄压测
- foreach遍历删除元素问题总结
- Deep understanding of the array
猜你喜欢
C# 获取PCI等设备的插槽位置信息
机器人控制器编程实践指导书旧版-实践二 传感器(模拟量)
What is an MQTT gateway?What is the difference with traditional DTU?
ES13 - ES2022 - The 123rd ECMA Congress approves the ECMAScript 2022 language specification
Reproduce dns out-band data combined with sqlmap
Elementary Structure
Tencent Cloud Song Xiang: Kubernetes cluster utilization improvement practice
PLSQL学习第三天
ATH10 sensor reads temperature and humidity
【Event Preview on August 9】Prometheus Summit
随机推荐
foreach遍历删除元素问题总结
u-boot ERROR: Failed to allocate 0x5c6f bytes below 0x17ffffff.Failed using fdt_high value
深入理解数组
2022 Henan Mengxin League No. 5: University of Information Engineering J-AC Automata
软件测试面试题避雷(HR面试题)最常见的面试问题和技巧性答复
【电商业务】外行为何难区别 商品属性与商品规格
pytest之parametrize参数化
Power function Exponential function Logarithmic function
C# 获取PCI等设备的插槽位置信息
浅谈C语言实现冒泡排序
ES13 - ES2022 - The 123rd ECMA Congress approves the ECMAScript 2022 language specification
Bigder:42/100 showCase多少bug可以打回去
Based on STC8G2K64S4 single-chip microcomputer to display analog photosensitive analog value through OLED screen
Confluence可以连接数据库但是在下一步就报错了
941 · Sliding Puzzles
MySQL事务隔离级别
语法基础(判断语句)
【MySQL】使用MySQL Workbench软件新建表
第2章 变量和基本类型读书笔记
IDLE开发wordCount程序(第五弹)