color-math
Version:
expressions to manipulate colors
15 lines (11 loc) • 334 B
JavaScript
import OperationExpr from './OperationExpr'
export default class BinaryExpr extends OperationExpr {
constructor(left, right, operator, options, $loc) {
super('binary', operator, options, $loc)
this.left = left
this.right = right
}
_evaluateInternal(e) {
return e.evalBinaryOperation(this)
}
}