pixels = W:1024 H:1024

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

d = IsPointInConvexPolygon(x, y, 0.6, 0.4, -0.5, 0.7, -0.9, -0.2, 0.8, -0.3)

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