UNPKG

color-math

Version:
16 lines (12 loc) 294 B
import Expr from './Expr' export default class ScaleExpr extends Expr { constructor(colors, domain, mode, $loc) { super('scale', $loc) this.colors = colors this.domain = domain this.mode = mode } _evaluateInternal(e) { return e.evalScale(this) } }