# Mix colour vectors with arithmetic operators

Source:`R/vctrs-arithmetic.R`

`colour-mixing-arithmetic.Rd`

These binary operators mix colour vectors with arithmetic operators.

## Arguments

- e1, e2
Colour vectors of class

`palettes_colour`

.

## Value

The binary operators return colour vectors of class
`palettes_colour`

containing the result of the element by
element operations. If involving a zero-length vector the result has length
zero. Otherwise, the elements of shorter vectors are recycled as necessary.
The `+`

operator is for additive colour mixing.

## Examples

```
x <- pal_colour("red")
y <- pal_colour("blue")
x + y
#> <palettes_colour[1]>
#> • #FF00FF
```