使用: lazy var progressView: RCGradientProgressView = { $0.layer.cornerRadius = 5 ...
使用: lazy var progressView: RCGradientProgressView = { $0.layer.cornerRadius = 5 ...
以下是学习笔记: 参考:https://www.bilibili.com/video/BV1eQ4y1M7ZY?p=3 自定义控件开发的思路:属性,事件,Paint(重写),这三个不一定都要有的 效果: 用途:分类显示内容的场景 一,自定义控件 1,添加“组件类 ...
1.折线图(区域) 2.柱状图 3.饼状图 4.地图 ...
语法: background-image: linear-gradient(direction, color-stop1, color-stop2, ...); /* 从上到下,蓝色渐变到红色 */ linear-gradient(blue, red); /* 渐变轴为45度,从蓝色渐变 ...
background-image: -webkit-linear-gradient( ); //设置颜色与渐变方向 -webkit-background-clip: text; //主要用于剪掉文字以外的区域。 -webkit-text-fill-color ...
方法类 colors 渐变的颜色 locations 渐变颜色的分割点 startPoint&endPoint 颜色渐变的方向,范围在(0,0)与(1.0,1.0)之间,如(0,0)(1.0,0)代表水平方向渐变,(0,0)(0,1.0)代表竖直方向渐变 ...
设置渐变色 color1 = new ECharts.graphic.LinearGradient(0,1,0,0,[{ offset: 0, color: "rgba(100,160,255,0.5)" }, { offset: 1, color: "#0AC8FF" }],false ...
这里渐变色: 配合圆角背景: 结果展示: 参考01:https://www.jianshu.com/p/2600db55908f 参考02:https://www.jianshu.com/p/54b458d54ef8 ...