当前位置:网站首页>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]
}
边栏推荐
猜你喜欢

A few lines of code can crash the system;

1413. Stepwise Summation to Get Minimum Positive Numbers

初使jest 单元测试

Grammar Basics (Judgment Statements)

裸辞—躺平—刷题—大厂(Android面试的几大技巧)

COLMAP+OpenMVS realizes 3D reconstruction mesh model of objects

PLSQL学习第一天

【Event Preview on August 9】Prometheus Summit

mysql之两阶段提交

ATH10 sensor reads temperature and humidity
随机推荐
自组织是管理者和成员的双向奔赴
foreach遍历删除元素问题总结
2022 Henan Mengxin League Game (5): University of Information Engineering K - Matrix Generation
delta method 介绍
Basic use of Log4j2
Bigder:42/100 showCase多少bug可以打回去
3-6月面经总结,200多页真题笔记和详解(含核心考点及6家大厂)
.NET-8. My Thought Notes
C language file operation
MySQL database monthly growth problem
Quickly grasp game resources in one hour and remote hot update
结构体初阶
COLMAP+OpenMVS realizes 3D reconstruction mesh model of objects
Everyone, the default configuration of oracle cdc occasionally takes 30 seconds to capture data. How to optimize this?
mysql之两阶段提交
Discussion on Chinese Fuzzy Retrieval in Databases
order by injection and limit injection, and wide byte injection
神经网络的三种训练方法,神经网络训练全过程
求问各位大佬,FLink SQL读取source的时候去指定水位线的时间字段,如果指定的这个字段中格
【Event Preview on August 9】Prometheus Summit