DRAW ARC Sample
Posted: Sun Oct 10, 2021 3:50 am
hi,
i found some Sample with DRAW ARC but i can not find out which X,Y Coordinate are used.
i start with
but how to get X,Y Coordinate for RADIAL
i want to start with 0° at "12" and have
which is like a Clock
---
under Xbase++ i need to use "negative" Value for "Clockwise" rotation
so how get from "Angle" to X,Y Coordinate for RADIAL in HMG
i found some Sample with DRAW ARC but i can not find out which X,Y Coordinate are used.
Code: Select all
msginfo("Arc")
// Arc
draw arc in window x at 160,300 to 260,400 from radial 180,350 to radial 200,400 pencolor {random(255),random(255),random(255)} penwidth 5
Code: Select all
draw arc in window Win_1 at 0,0 to Width,Heighti want to start with 0° at "12" and have
Code: Select all
+90° at "3"
+180° at "6"
+270° at "9"---
under Xbase++ i need to use "negative" Value for "Clockwise" rotation
Code: Select all
nSweepAngle := INT( ( nSS * 360 / 60 ) - 360 )
nSweepAngle := INT( ( nMM * 360 / 60 ) - 360 )
nSweepAngle := INT( ( nHH * 360 / 12 ) - 360 )