#Help! Buggy macro
17-Jul-94 15:05:37
Sb: #86393-#Help! Buggy macro
Fm: Charles Blaquiere 76046,1756
To: Black Belt Systems 76004,1771
Ben,
umm, nevermind. B^) There were actually two bugs, and I solved them on my own.
1) After the user selects an area, I do a 'cdef' to get color values for that
region. However, those values will be _lost_ when the macro ends, and there's
no way the _next_ invocation of the macro, on the next frame, will be able to
tell Imagemaster to use those same colors. (As my T-shirt says, "I can't even
THINK straight" — in this case, I wasn't even thinking, period) I solved the
problem by using 'setclip' and 'getclip' to store color values in the first
run, and reload them in subsequent frames. Once I gave Imagemaster's
'colchange' the right color values, it worked fine. <shrug>
2) Even with the right color values, the second frame would be totally replaced
by black, green background and all. That's because… the background color on
frame 2 wasn't the same. (How stupid of me) Once I altered all my test frames
so they'd have compatible backgrounds, the macro worked just fine.
So there you have it. I'll add a few more niceties to the macro, such as a
variable edge fuzziness control, and upload it when it's done. Should make a
nice addition to the stable of Imagemaster ARexx macros out there.
Just think, someone on the Mac must be charging big bucks for this very thing.
Don't you love working on the Amiga?
Charles -via Fingers!