Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect

Alejandro Tejada
Maybe this could be useful:

on mouseUp
   lock screen
   create grc
   set the style of it to polygon
   set the points of it to "3,0,0,10,10,10,7,0,3,0"
   -- a very small figure
   set the rect of it to "0,0,200,100"
   -- enlarge the figure
   set the loc of it to the screenloc
   -- position it in a place easy to find
   unlock screen
end mouseUp

Alejandro

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode