def shade(self, stroke): for svert, t in zip(stroke, iter_t2d_along_stroke(stroke)): b = self.value.min + self.evaluate(t) * self.value.delta self.blend_thickness(svert, b)
def shade(self, stroke): for svert, t in zip(stroke, iter_t2d_along_stroke(stroke)): a = svert.attribute.alpha b = self.evaluate(t) svert.attribute.alpha = self.blend(a, b)
def shade(self, stroke): for svert, t in zip(stroke, iter_t2d_along_stroke(stroke)): a = svert.attribute.color b = self.evaluate(t) svert.attribute.color = self.blend_ramp(a, b)