Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Masking
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Fashoomp




PostPosted: Fri Mar 23, 2007 4:20 pm   Post subject: Masking

How, if even possible can you create (in flash terminology) masking. I cant really see how it would be done, because turing does not work with layers. Would it be possible to have an image. Only visible within a 50 pixel radius to the cursor?
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: Fri Mar 23, 2007 4:39 pm   Post subject: Re: Masking

It would be kind of hard, as you would need to do a pixel-pixel check to see if they are the same color as the one that you had clicked on (this screams recursion) and keep going through your picture based on possible paths from the last possible spot that you were at. I highly suggest you check out zylum's recursion tutorial in the Turing Walkthrough to figure out how this could even begin to be done.

If you mean what I think you mean for your mouse cursor, then, no, I do not believe there is a (built-in) way to see only a part of an image within a 50 pixel radius of the mouse cursor. However, you could try and work something in with Pic.New() and other functions/procedures from the Pic module. Make no mistake, this will end up being a huge project should you try to take this on.
ericfourfour




PostPosted: Fri Mar 23, 2007 9:28 pm   Post subject: RE:Masking

There is a Turing application at View.ClipAddOval in the Turing help that does what I think you are asking in the last sentence.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: