def __init__(self, d={}, name='image', verbose=False): self.name = name Layer.__init__(self, d, verbose) self.i = Layer.arg(d) self.threshold = self.attr('threshold', 200) self.imgs = {} self.mod = None
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) assert self.attr('box') self.attr('units') self.outline = Layer.arg(d) self.radius = self.attr('corner-radius', 0) self.width = self.attr('line-width', 1) self.fillColor = self.attr('fill-color', None) assert self.radius==0 or self.width < self.radius
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.color = Layer.arg(d) self.r1 = self.attr('radius', 2) self.r2 = self.attr('distance', 5) + self.r1 self.grad = self.attr('grad', True) self.opacity = int(255 * min(self.attr('opacity', 100.0), 100.0) / 100.0) assert self.attr('box') self.attr('units')
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.color = Layer.arg(d)
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.opacity = min(Layer.arg(d), 100.0) / 100.0
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.level = int(Layer.arg(d))
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.color = Layer.arg(d) self.range = self.attr('range', [.2, .5])
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.angle = float(Layer.arg(d))
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.color = Layer.arg(d) self.radius = self.attr('gauss-blur-radius', 2)
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.mode = Layer.arg(d)
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.filter = Layer.arg(d)
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.amount = Layer.arg(d)
def __init__(self, d, verbose=False): Layer.__init__(self, d, verbose) self.origin = Layer.arg(d) assert self.attr('box') self.attr('units')