Bläddra i källkod

Fixed wrapf() error in the custom drawing in 2d tutorial (#2449)

* Fixed error in the custom drawing in 2d tutorial where method said wrap but should be wrapf
thebspin 6 år sedan
förälder
incheckning
03d693262b
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      tutorials/2d/custom_drawing_in_2d.rst

+ 2 - 2
tutorials/2d/custom_drawing_in_2d.rst

@@ -434,8 +434,8 @@ smaller value, which directly depends on the rendering speed.
 
         # We only wrap angles when both of them are bigger than 360.
         if angle_from > 360 and angle_to > 360:
-            angle_from = wrap(angle_from, 0, 360)
-            angle_to = wrap(angle_to, 0, 360)
+            angle_from = wrapf(angle_from, 0, 360)
+            angle_to = wrapf(angle_to, 0, 360)
         update()
 
  .. code-tab:: csharp