Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pprint()
s = stroke(((0.1, 0.1),
(0.1, 0.1),
(0.1, 0.9),
(0.1, 0.1)),
((0.9, 0.9),
(0.1, 0.9),
(0.9, 0.9),
(0.2, 0.15)), 2).rgb(black(0.4)).json()
pprint(s)
pprint(stroke.from_json(s).json())
pprint()
c = circle(0.05, ((0.5, 0.4), (0.8, 0.4)), 1.0).json()
pprint(c)
pprint(circle.from_json(c).json())
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()
send([box(0.05, ((0.7, 0.3), (0.7, 0.8)), 1.0)])
send([stroke(((0.1, 0.1),
(0.1, 0.1),
(0.1, 0.9),
(0.1, 0.1)),
((0.9, 0.9),
(0.1, 0.9),
(0.9, 0.9),
(0.2, 0.15)), 2)])
erosion.set_fg(rgb(0, 0.7, 0.2, 0.1))
send([circle(0.05, ((0.5, 0.4), (0.8, 0.4)), 1.0)])
send([circle(0.05, ((0.9, 0.1),
(0.9, 0.15),
(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)])])
erosion.set_fg(black())
draw([box(0.05, ((0.7, 0.3), (0.7, 0.8)), 1.0)])
desert.show()
draw([stroke(((0.1, 0.1),
(0.1, 0.1),
(0.1, 0.9),
(0.1, 0.1)),
((0.9, 0.9),
(0.1, 0.9),
(0.9, 0.9),
(0.2, 0.15)), 2)])
desert.set_fg(rgb(0, 0.7, 0.2, 0.1))
draw([circle(0.05, ((0.5, 0.4), (0.8, 0.4)), 1.0)])
draw([circle(0.05, ((0.9, 0.1),
(0.9, 0.15),
(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()
(0.1, 0.1)),
((0.9, 0.9),
(0.1, 0.9),
(0.9, 0.9),
(0.2, 0.15)), 2).rgb(black(0.4)).json()
pprint(s)
pprint(stroke.from_json(s).json())
pprint()
c = circle(0.05, ((0.5, 0.4), (0.8, 0.4)), 1.0).json()
pprint(c)
pprint(circle.from_json(c).json())
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),
desert.set_fg(rgb(0, 0.7, 0.2, 0.1))
draw([circle(0.05, ((0.5, 0.4), (0.8, 0.4)), 1.0)])
draw([circle(0.05, ((0.9, 0.1),
(0.9, 0.15),
(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()
erosion.set_fg(rgb(0, 0.0, 0.8, 0.1))
send([box(0.05, ((0.7, 0.3), (0.7, 0.8)), 1.0)])
send([stroke(((0.1, 0.1),
(0.1, 0.1),
(0.1, 0.9),
(0.1, 0.1)),
((0.9, 0.9),
(0.1, 0.9),
(0.9, 0.9),
(0.2, 0.15)), 2)])
erosion.set_fg(rgb(0, 0.7, 0.2, 0.1))
send([circle(0.05, ((0.5, 0.4), (0.8, 0.4)), 1.0)])
send([circle(0.05, ((0.9, 0.1),
(0.9, 0.15),
(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)])])