com.evocomputing.macros

create-color-with-meta

macro

(create-color-with-meta & body)
Create color with type metadata.

def-color-bin-op

macro

(def-color-bin-op name docstring bin-op)
Macro for creating binary operations between two colors.

Arguments
name - the name of the operation.

bin-op - the function that takes two values, producing one from
those. (eg: + - * /). This op will be applied pairwise to the
repective color's rgba components to create a new color with the
resultant rgba components.

Result
color - a new color that is the result of the binary operation.