Repository navigation
Releases
Releases · Siyu1017/turtle.js
v1.5.0
v1.4.0
v1.4.0 ( 2024-07-08 )
Added
turtle.on(event, func)- Add event listenerturtle.enable(pluginName)- Enable pluginturtle.disable(pluginName)- Disable pluginturtle.toggle(pluginName)- Toggle pluginturtle.register(plugin)- Register a pluginturtle.unregister(pluginName)- Unregister a plugin
Learn more on https://turtlejs.vercel.app/docs/plugin
v1.3.1
v1.3.0
v1.2.1
v1.2.0
v1.2.0 ( 2024-07-06 )
Changed
-
Functions used to get the turtle's state will not return a value, they return a Promise object, you can use
.then()to get the return value. -
Now you can use
.then()after all the available functions of turtle[!Warning]
Some functions may not return a value// method is a function available in the current version turtle.method().then(res => { // Do something... })
Fixed
- When using
turtle.left(),turtle.right(), the turtle's heading changes, but the direction does not change. - Can not get turtle's state (
turtle.position(),turtle.xcor,turtle.ycor... ) - When the transition duration is less than 100ms, the turtle's movement will be uncontrolled
v1.1.0
v1.1.0 ( 2024-07-04 )
Added
- turtle and other shapes
- turtle motion transition
turtle.setlinecap()turtle.setlinejoin()turtle.seteasing()turtle.setduration()turtle.showturtle()turtle.hideturtle()turtle.isvisible()turtle.shape()- Short functions
turtle.version