Blend

Combines images using different blend modes.


Source: pkg/lua/lib/blend.go | Import: blend

Functions


add

add(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
add_inplace

add_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
color_burn

color_burn(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
color_burn_inplace

color_burn_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
color_dodge

color_dodge(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
color_dodge_inplace

color_dodge_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
darken

darken(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
darken_inplace

darken_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
difference

difference(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
difference_inplace

difference_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
divide

divide(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
divide_inplace

divide_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
exclusion

exclusion(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
exclusion_inplace

exclusion_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
lighten

lighten(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
lighten_inplace

lighten_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
linear_burn

linear_burn(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
linear_burn_inplace

linear_burn_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
linear_light

linear_light(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
linear_light_inplace

linear_light_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
multiply

multiply(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
multiply_inplace

multiply_inplace(bg, fg, )

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
normal

normal(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
normal_inplace

normal_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
overlay

overlay(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
overlay_inplace

overlay_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
screen

screen(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
screen_inplace

screen_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
soft_light

soft_light(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
soft_light_inplace

soft_light_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
subtract

subtract(bg, fg, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
subtract_inplace

subtract_inplace(bg, fg)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
opacity

opacity(bg, fg, percent, name, encoding) -> int<collection.IMAGE>

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • percent float - Between 0 and 1.
  • name string - The name of the new image.
  • encoding int<image.Encoding>
Return Values

  • int<collection.IMAGE>
opacity_inplace

opacity_inplace(bg, fg, percent)

Arguments

  • bg int<collection.IMAGE>
  • fg int<collection.IMAGE>
  • percent float - Between 0 and 1.