Just a tip, in case its useful... You can just use a comma instead of CR when populating the points. They get turned back into CRs internally, but it makes it easier to hand-jam values in the code to use "1,1,20,20,100,100" instead of "1,1"&cr&"20,20"&cr&"100,100"
~ Chris Innanen ~ Nonsanity On Tue, Jan 18, 2011 at 10:41 PM, Alejandro Tejada <capellan2...@gmail.com>wrote: > Hi all, > > Just today, I found about this use for the > property named "fillRule" > > Put the following script of 7 lines in a button: > (Watch for wraps in the Third line) > > create graphic > set the style of it to polygon > set the points of it to "50,50" & cr & "50,100" & cr & "100,100" & cr > & "100,50" & cr & "50,50" & cr & cr & "60,60" & cr & "60,90" & cr & > "90,90" & cr & "90,60" & cr & "60,60" > set the opaque of it to true > set the fillRule of it to evenodd > set the backcolor of it to "green" > set the tool to pointer > > You have a Square with a square hole... :-D > Of course, this is already explained in the Dictionary > but without an example, it's not really obvious. > > Now, Livecode only needs some way to create irregular > masks from Polygon vector graphic. :-) > > Al > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode