pixels = W:1024 H:1024

x = from -1 to 1 W
y = from -1 to 1 H

a = sdTriangleIsosceles2D(x, y, 0.6, 0.8)
b = sdCircle2D(x, y, 0.5)
d = opSmoothSubtraction(a, b, 0.1)

c = distance_color(d*2)
r = parse_red(c)
g = parse_green(c)
b = parse_blue(c)
