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