示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 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)
示例#6
0
 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)