Mucking around with polygon graphics.

John Dixon dixonja at hotmail.co.uk
Thu Mar 7 15:16:24 EST 2013




> Boy-O-Boy; here I am at my most 'dangerous'; nothing to do than get 
> stimulated by postings on the Use-List.
> 
> So, I made a regular polygon graphic with 7 points, called it "G1", and 
> then thought "funny things" and tried this in a button:
> 
> on mouseUp
>     put item 1 of point 1 of graphic "G1" into WUN
> 
> end mouseUp
> 
> obviously didn't get any further than that as the
> script-editor "threw a blue one" at that point:
> 
> "button "Button": compilation error at line 2 (Handler: bad command) 
> near "1", char 18
> 
> Now . . .
> 
> I know that each point of a polygon graphic is defined by its position 
> on a stack - which I, quite
> reasonably thought might be 'item 1' and 'item 2' . . .
> 
> Come on: throw it at me!
> 
> Richmond.

   put the points of grc 1
   
   put line 1 of the points of grc 1

 		 	   		  


More information about the use-livecode mailing list