Computer-implemented methods and computer program apparatus, for
implementing techniques for shading selected regions of an image. These
include receiving an input selecting a region to be filled, receiving an
input defining a gradient specifying a color transition to be applied
between a starting position and an ending position, and applying the
gradient between the starting position and the ending position to assign,
based on the shape of the selected region, a color for each of a plurality
of points located inside an outline defining the region's shape. In
preferred embodiments, the gradient is applied by identifying, for each
point in the selected region, a color interpolation vector extending from
the starting position through the point to the ending position and
intersecting the outline at one or more intersection points, and assigning
a color for the point based on its position along the color interpolation
vector.
Компьютер-snabjenny1 прибор методов и компьутерной программы, потому что снабжать методы для затенять выбранные зоны изображения. Эти вклюают получать входной сигнал выбирая зону быть заполненным, получающ входной сигнал определяя градиент определяя переход цвета, котор нужно приложить между стартовым положением и положением законцовки, и прикладывающ градиент между стартовым положением и положением законцовки для того чтобы задать, основал на форме выбранной зоны, цвета по каждом из из множественность пунктов расположенных внутри плана определяя форму зоны. В предпочитаемых воплощениях, градиент приложен путем определять, для каждого пункта в выбранной зоне, векторе интерполяции цвета удлиняя от стартового положения через пункт к положению законцовки и пересекая план на one or more этапы пересечения, и задавая цвет для пункта основанного на своем положении вдоль вектора интерполяции цвета.