示例#1
0
 def on_start(self):
     for I in ti.grouped(self.color):
         self.color.old[I] = ts.imageTaichi(I / self.iResolution, 0.9)
示例#2
0
 def on_render(self):
     for i, j in self.img:
         uv = ts.view(self.img, i, j)
         self.img[i, j] = ts.imageTaichi(uv)
示例#3
0
 def fetch(self, uv):
     return ts.imageTaichi(uv)