Taichi
1 program
Added 2026-02-07T11:09:23Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 67a8ce3a9f · authored 2026-02-07T12:10:36+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/taichiRelated languages
LLM-contributed programs
Mandelbrot Set Renderer
Provenance: commit 67a8ce3a9f · authored 2026-02-07T12:10:36+01:00 · agent claude-code · model sonnet · WebSearch disabled
import taichi as ti
ti.init(arch=ti.cpu)
n = 320
pixels = ti.field(dtype=float, shape=(n * 2, n))
@ti.kernel
def paint(t: float):
for i, j in pixels:
c = ti.Vector([float(i) / n - 1, float(j) / n - 1])
z = ti.Vector([0.0, 0.0])
iterations = 0
while z.norm() < 20 and iterations < 50:
z = ti.Vector([z[0]**2 - z[1]**2, 2*z[0]*z[1]]) + c
iterations += 1
pixels[i, j] = 1 - iterations * 0.02
gui = ti.GUI("Mandelbrot Set", res=(n * 2, n))
for i in range(1000000):
paint(i * 0.03)
gui.set_image(pixels)
gui.show()
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)