subv

Category

Mathematical commands

Syntax

subv(vA,vB);

vA -= vB;

vA = vA - vB;

Description

vB is subtracted from vA. Since a var can only be from 0-255, if the result is less than 0, then the value wraps around, e.g. 10 - 12 would give 254.

See also

subn