How to paint a background and place graphics on top of if?

Sarah Reichelt sarahr at genesearch.com.au
Sun Jan 30 18:54:30 EST 2005


> Back in the good old days of Pascal, I declared the CliptRect, painted 
> the whole picture, and I was sure that only the ClitpRect was painted 
> - performance was excellent event on a 68000. There was something as 
> easy as lineTo - but what is the equivalent in Rev? It must be there, 
> because I can use the paint tool to draw lines, patterns and so forth 
> - but how to do it under script control?

I'm not sure exactly what you need, but you can create graphics objects 
easily enough by script:

create invisible graphic "NewLine"
set the style of graphic "NewLine" to "line"
set the points of graphic "NewLine" to "100,100" & cr & "200,200"
-- then set colors, thickness etc.
show graphic "NewLine"

If you want to make lost of similar objects, set the properties for the 
templateGraphic first, then each object will start off with those 
properties.

Sarah



More information about the Use-livecode mailing list