max
  1. other

max() takes two images and returns the maximum of the two. For each pixel, it compares the red, green, blue and alpha (transparency) values separately, and keeps the larger value for each one. This means the result can mix the two: it might take its red from the first image and its green from the second, giving a colour that neither image had. It's counterpart is min().

$: noise(0.9)
  .color("aqua")
  .max(color("darkblue"))

Below is an example of the max comparison for one pixel in an image.

firstsecondmax
r0.90.30.9
g0.20.70.7
b0.50.50.5
a1.00.41.0
parametertype
other
returns
mentioned in (1)