Visualisation¶
- turtlethread.visualise.visualise_pattern(pattern, turtle=None, width=800, height=800, scale=1, speed=6, trace_jump=False, skip=False, check_density=True, done=True, bye=True)[source]¶
Use the builtin
turtlelibrary to visualise an embroidery pattern.Parameters¶
- patternpyembroidery.EmbPattern
Embroidery pattern to visualise
- turtleturtle.Turtle (optional)
Python turtle object to use for drawing. If not specified, then the default turtle is used.
- widthint
Canvas width
- heightint
Canvas height
- scaleint
Factor the embroidery length’s are scaled by.
- speedint
Speed that the turtle object moves at.
- trace_jumpbool
If True, then draw a grey line connecting the origin and destination of jumps.
- skipbool
If True, then skip the drawing animation and jump to the completed visualisation.
- check_densitybool
If True, then check the density of the embroidery pattern. Recommended but slow.
- donebool
If True, then
turtle.done()will be called after drawing.- byebool
If True, then
turtle.bye()will be called after drawing.