Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[(0.15, 0.25),
(0.35, 0.45),
(0.55, 0.65)]], 2)]).show()
draw([bzspl([[(0.1, 0.2),
(0.8, 0.3),
(0.3, 0.9)]], 2)]).show()
draw([bzspl([[(0.1, 0.2),
(0.8, 0.3),
(0.3, 0.9)],
[(0.35, 0.25),
(0.85, 0.35),
(0.35, 0.95)]], 2)]).show()
draw([bzspl([[(0.1, 0.2),
(0.4, 0.25),
(0.9, 0.15),
(0.9, 0.3),
(0.95, 0.45),
(0.8, 0.9),
(0.1, 0.87)]], 2, closed=True)]).show()
draw([bzspl([[(0.15, 0.2),
(0.45, 0.25),
(0.95, 0.15),
(0.95, 0.3),
(0.98, 0.45),
(0.85, 0.9),
(0.15, 0.87)]], 2)]).show()
desert.set_fg(rgb(1, 0, 1, 1))
pprint(r)
pprint(Rgba.from_json(r).json())
pprint()
b = bzspl([[(0.1, 0.2),
(0.4, 0.25),
(0.9, 0.15),
(0.9, 0.3),
(0.95, 0.45),
(0.8, 0.9)]], 2, closed=True).json()
pprint(b)
pprint(bzspl.from_json(b).json())
pprint()
b2 = bzspl([[(0.1, 0.2),
(0.3, 0.4),
(0.5, 0.6)],
[(0.15, 0.25),
(0.35, 0.45),
(0.55, 0.65)]], 2).json()
pprint(b2)
pprint(bzspl.from_json(b2).json())
pprint()
noise = 0.00005
spl = []
for _ in range(20):
a = sorted(random(num)*TWOPI)
spl.append(0.5 + column_stack((cos(a), sin(a)))*rad)
res = []
for i in range(1, 4000000):
for xy in spl:
n = xy.shape[0]
xy += in_circle(n, 0, 0, 1)*reshape(arange(n), (n, 1))*noise
res.append(xy.copy())
if not i%400:
c.draw([bzspl(res, density, noise=0.001)]).show(gamma=1.5)
res = []
if not i%(400*20):
c.save(filename(arg), gamma=1.5)
(0.9, 0.3),
(0.95, 0.45),
(0.8, 0.9),
(0.1, 0.87)]], 2, closed=True)])
send([bzspl([[(0.15, 0.2),
(0.45, 0.25),
(0.95, 0.15),
(0.95, 0.3),
(0.98, 0.45),
(0.85, 0.9),
(0.15, 0.87)]], 2)])
erosion.set_fg(rgb(1, 0, 1, 1))
send([bzspl([[(0.5, 0.1),
(0.3, 0.2),
(0.1, 0.3),
(0.4, 0.3),
(0.95, 0.45),
(0.8, 0.9),
(0.1, 0.87)]], 2)]).save()
pprint()
c = circle(0.05, ((0.5, 0.4), (0.8, 0.4)), 1.0)\
.rgb([
black(0.3),
black(0.1)]).json()
pprint(c)
pprint(circle.from_json(c).json())
pprint()
r = rgb(0.1, 0.4, 0.3, 0.99).json()
pprint(r)
pprint(Rgba.from_json(r).json())
pprint()
b = bzspl([[(0.1, 0.2),
(0.4, 0.25),
(0.9, 0.15),
(0.9, 0.3),
(0.95, 0.45),
(0.8, 0.9)]], 2, closed=True).json()
pprint(b)
pprint(bzspl.from_json(b).json())
pprint()
b2 = bzspl([[(0.1, 0.2),
(0.3, 0.4),
(0.5, 0.6)],
[(0.15, 0.25),
(0.35, 0.45),
(0.55, 0.65)]], 2).json()
[(0.15, 0.25),
(0.35, 0.45),
(0.55, 0.65)]], 2)])
send([bzspl([[(0.1, 0.2),
(0.8, 0.3),
(0.3, 0.9)]], 2)])
send([bzspl([[(0.1, 0.2),
(0.8, 0.3),
(0.3, 0.9)],
[(0.35, 0.25),
(0.85, 0.35),
(0.35, 0.95)]], 2)])
send([bzspl([[(0.1, 0.2),
(0.4, 0.25),
(0.9, 0.15),
(0.9, 0.3),
(0.95, 0.45),
(0.8, 0.9),
(0.1, 0.87)]], 2, closed=True)])
send([bzspl([[(0.15, 0.2),
(0.45, 0.25),
(0.95, 0.15),
(0.95, 0.3),
(0.98, 0.45),
(0.85, 0.9),
(0.15, 0.87)]], 2)])
erosion.set_fg(rgb(1, 0, 1, 1))
(0.9, 0.2),
(0.9, 0.25),
(0.9, 0.3)), 2)\
.rgb([rgb(0.2, 0.2, 0.9, 0.3),
rgb(0.9, 0.2, 0.2, 0.3),
rgb(0.2, 0.9, 0.2, 0.3),
rgb(0.9, 0.9, 0.2, 0.3),
rgb(0.2, 0.9, 0.9, 0.3)]),
circle(0.05, ((0.85, 0.1),
(0.85, 0.3)), 2)\
.rgb([rgb(0.5, 0.2, 0.9, 0.3),
rgb(0.9, 0.5, 0.2, 0.3)])]).show()
desert.set_fg(black())
draw([bzspl([[(0.1, 0.2),
(0.3, 0.4),
(0.5, 0.6)],
[(0.15, 0.25),
(0.35, 0.45),
(0.55, 0.65)]], 2)]).show()
draw([bzspl([[(0.1, 0.2),
(0.8, 0.3),
(0.3, 0.9)]], 2)]).show()
draw([bzspl([[(0.1, 0.2),
(0.8, 0.3),
(0.3, 0.9)],
[(0.35, 0.25),
(0.85, 0.35),
(0.35, 0.95)]], 2)]).show()
rgb(0.2, 0.9, 0.9, 0.3)]),
circle(0.05, ((0.85, 0.1),
(0.85, 0.3)), 2)\
.rgb([rgb(0.5, 0.2, 0.9, 0.3),
rgb(0.9, 0.5, 0.2, 0.3)])])
erosion.set_fg(black())
send([bzspl([[(0.1, 0.2),
(0.3, 0.4),
(0.5, 0.6)],
[(0.15, 0.25),
(0.35, 0.45),
(0.55, 0.65)]], 2)])
send([bzspl([[(0.1, 0.2),
(0.8, 0.3),
(0.3, 0.9)]], 2)])
send([bzspl([[(0.1, 0.2),
(0.8, 0.3),
(0.3, 0.9)],
[(0.35, 0.25),
(0.85, 0.35),
(0.35, 0.95)]], 2)])
send([bzspl([[(0.1, 0.2),
(0.4, 0.25),
(0.9, 0.15),
(0.9, 0.3),
(0.95, 0.45),
(0.8, 0.9),