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>
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_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>
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>
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>
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>
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>
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>
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_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>
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>
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>
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>
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>
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>
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>
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>