rgba():
创建一个使用 0 到 255 范围内的红色、绿色、蓝色和 alpha 值指定的新颜色
例如:const customColor = new Cesium.Color.fromBytes ( 0, 246, 255, 0.46 )
css#:
从 CSS 颜色值创建一个 Color 实例(#rgb、#rgba、#rrggbb、#rrggbbaa、rgb()、rgba()、hsl() 或 hsla() 格式的 CSS 颜色值)。
例如:const customColor = new Cesium.Color.fromCssColorString ('#009DFF')
HSL:
从色相、饱和度和亮度创建一个 Color 实例( hue:色相角 0...1 , saturation:饱和度值 0...1, lightness:亮度值 0...1 , alpha:alpha 分量 0...1)。
例如:const customColor = new Cesium.Color.fromHsl (0, 50%, 50%, 0.7)
Cesium 自定义颜色
于 2024-03-06 14:48:02 首次发布