改变图片的一部分从一个渐变色到另一个渐变色。

huangapple go评论83阅读模式
英文:

Change gradient color for part of the picture to the other gradient

问题

我有一部分的图片,主要是使用某种线性渐变绘制的,从白色开始,以某种颜色结束,最简单的例子是想象一下黑色表面上被白光照射的黄色球。我还有其他渐变可用,也是从白色开始,以其他颜色结束,比如绿色,现在我想将黄色球变成绿色。在我的情况下,我有一个更复杂的形状,与黑线交织在一起,还包括一些从黑色渐变到源颜色的渐变 - 想象一下同样的黄色球,有人决定用黑线分割成“单元”。

我正在寻找一种公式或任何方法,以更高效的方式实现我想要的效果,而不仅仅是在“色相/饱和度”对话框中移动滑块。

通常我会通过“色相/饱和度”来做这个,但显然我不够熟练,无法弄清楚三个可用的滑块的位置,以至少在源颜色需要与给定渐变相匹配时远程获得所需的结果。我想知道是否可以使用某种公式,使自己更容易计算“色相/饱和度”中的滑块位置,以便将选择中的某种颜色更改为匹配所需的颜色?如果可以通过其他选项实现这一目标,那也很好。

英文:

I have part of the picture that was drawn primarily using a certain linear gradient starting with white and ending with certain color, simplest example - think of a yellow ball on the black surface illuminated by a source of a white light. I also have other gradient available also starting with white and ending with some other color, e.g. think of a green color, now I want to change yellow ball to a green one. In my case I have a much more complicated shape intertwined with black lines and also including some gradients from black to the source color - think of the same yellow ball that someone decided to divide by "cells" using black lines.

I'm looking for a formula or any way to be able to do what I want in more efficient way than by just moving the bars in "Hue/Saturation" dialog.

-

Normally I do this via "Hue/Saturation" but I am apparently not proficient enough to use it as I'm not able to figure out positions of three bars that are available to at least remotely get the desired result when the source colors would be target to plausibly match the given gradient.
I wonder if I can use a some sort of a formula to make it easier to myself to compute what bar positions in "Hue/Saturation" should be if a certain color in the selection must be changed to match some required one? If that's achievable via some other option, that'd be great to know too.

答案1

得分: 0

很难在没有看到你的图片的情况下做出准确的判断,但我通常尝试的第一件事通常是颜色 > 映射 > 旋转颜色

改变图片的一部分从一个渐变色到另一个渐变色。

... 因为它可能效果非常好,而且尝试起来相当容易。

英文:

Hard to tell without seeing your picture but the first thing I try is usually Color > Map > Rotate colors:

改变图片的一部分从一个渐变色到另一个渐变色。

... because it can work beautifully, and is quite easy to try.

huangapple
  • 本文由 发表于 2023年3月7日 04:03:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/75655338.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定