CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.36k stars 3.38k forks source link

Filter color and show invert color of imagery layer #10203

Open ZhuJun-WHU opened 2 years ago

ZhuJun-WHU commented 2 years ago

I have an idea to easily change the color style of imagery layer,so i add two members filterColor and showInvertColor for imgery layer, the filterColor will be make the imagery layer show similar color like the filerColor value, and the showInverColor make color of the imagery layer being inverted. The two members can be used alone or together.

Here is GIF: recorder

ggetz commented 2 years ago

Hi @ZhuJun-WHU, we do have some existing imagery adjustment options. There's nothing for inverting the color, but are you able to achieve similar results to "FilterColter" by adjusting the hue and other options?

ZhuJun-WHU commented 2 years ago

Hi @ZhuJun-WHU, we do have some existing imagery adjustment options. There's nothing for inverting the color, but are you able to achieve similar results to "FilterColter" by adjusting the hue and other options?

I cann't achieve similar result what I want by adjusting the existing imagery adjustment options, so I add two members for imagery layer options, I will pull request later.