We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rotate LDPolygon
#2
Hi,

Do you have an example, the following works for me.  Most shapes/controls rotate about their bounding box centre, lines are an exceptions and tricky to rotate.

Code:
Polygon1 = LDShapes.AddPolygon("1=1\=0\;2\=50\;;2=1\=34.5\;2\=97.6\;;3=1\=90.5\;2\=79.4\;;4=1\=90.5\;2\=20.6\;;5=1\=34.5\;2\=2.4\;;")
Shapes.Move(Polygon1,100,100)
For i = 1 To 360
  Shapes.Rotate(Polygon1,i)
  Program.Delay(10)
EndFor
Reply


Messages In This Thread
Rotate LDPolygon - by AbsoluteBeginner - 05-15-2024, 08:17 AM
RE: Rotate LDPolygon - by litdev - 05-15-2024, 08:37 AM
RE: Rotate LDPolygon - by AbsoluteBeginner - 05-15-2024, 11:03 AM
RE: Rotate LDPolygon - by z-s - 05-15-2024, 11:50 AM
RE: Rotate LDPolygon - by litdev - 05-15-2024, 11:59 AM
RE: Rotate LDPolygon - by AbsoluteBeginner - 05-15-2024, 01:22 PM
RE: Rotate LDPolygon - by AbsoluteBeginner - 05-15-2024, 07:14 PM
RE: Rotate LDPolygon - by litdev - 05-15-2024, 07:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)