
请忽略蓝线。基本上,我想使用选择 > 颜色范围或魔术棒进行一些选择,对于每个选定的补丁,我想在补丁的中心应用一些渐变。
伪代码将是:
select current active layer
apply color range or magic wand selection
for each sub selection in main selection:
do:
calculate the center coordinate of the current sub-selection area
apply a custom gradient using the coordinate as the starting point
我不确定这是否可行,因为我不知道颜色范围或魔术想要选择是否包含“子选择”。子选择是指上图中的每个单独的补丁。