Page 2 of 2

Re: Paint bucket issue

Posted: Mon Jan 01, 2018 11:52 am
by richmond62
with LC 4.6.3
I'm sure you did.

BUT . . . .

Almost everything in the LiveCode IDE was entirely recoded
"from the ground up" somewhere between version 5 and 8,
and the paint bucket, obviously, wasn't implemented 'properly'.
The engine was completely rewritten in 7
http://forums.livecode.com/viewtopic.ph ... 30#p162024

Re: Paint bucket issue

Posted: Mon Jan 01, 2018 12:26 pm
by richmond62
Of course you could import the MetaCard Paint Tools into your stack . . .
MC Paint Tools.jpg
MC Paint Tools.livecode.zip
(1.63 KiB) Downloaded 470 times
You'll have to fiddle around with the Paint Tools script a bit so that it opens
as a palette.

Re: Paint bucket issue

Posted: Mon Jan 01, 2018 12:38 pm
by jmburnod
Of course you could import the MetaCard Paint Tools into your stack . . .
I believe I prefer send a bug report...
except if you assure upgrade :D

Re: Paint bucket issue

Posted: Mon Jan 01, 2018 12:40 pm
by richmond62
I prefer send a bug report...
And wait for donkey's ages: OK 8)
MCPT.png
MCPT.png (25.8 KiB) Viewed 11230 times
Readily Hackable :wink:

ALSO . . . you could extract the Paint Tools from the version of LiveCode that works
and "bring them forward" to the version where you wish to have that functionality.

temptation.jpg
temptation.jpg (10.21 KiB) Viewed 11223 times

Re: Paint bucket issue

Posted: Mon Jan 01, 2018 4:07 pm
by richmond62
toolz.png
toolz.png (7.86 KiB) Viewed 11210 times
MCPT.livecode.zip
(1.61 KiB) Downloaded 460 times

Re: Paint bucket issue

Posted: Mon Jan 01, 2018 8:21 pm
by richmond62
Somewhere between RunRev 2.0 and RunRev/Dreamcard 2.6.1 the revpainttools.rev stack
was "subsumed" into the revTools stack.
RRpaint.png
RRpaint.png (24.76 KiB) Viewed 11189 times
PaintMyKnees.png
PaintMyKnees.png (39.87 KiB) Viewed 11189 times

Re: Paint bucket issue

Posted: Mon Jan 01, 2018 8:28 pm
by richmond62
These ALSO work "how they should" with your stack:
YourStack with old paint tools.png

Re: Paint bucket issue

Posted: Mon Jan 01, 2018 8:31 pm
by richmond62
oldpaint.png
oldpaint.png (5.36 KiB) Viewed 11189 times
Paint.livecode.zip
My Modded version
(4.5 KiB) Downloaded 476 times
revpainttools.rev.zip
Original version
(4 KiB) Downloaded 486 times
Of course as these are extracted from RunRev 2.0 they are probably copyrighted,
so, unlike the Paint Tools from Metacard you will need to "tread carefully"
should you choose to use them.

Re: Paint bucket issue

Posted: Mon Jan 01, 2018 8:50 pm
by bogs
You sir are on a roll!

Btw, sub-sectioning the Mc stuff does seem to come forward ok for the most part (as I did with the help directory stacks), but as Richmond mentioned, the paint palette doesn't appear to work,

Without any re-jiggering at all, the named colors one *does* appear to work ok. I haven't tested it out completely yet, but will be looking at the other 2 available tabs for picking colors.

Re: Paint bucket issue

Posted: Tue Jan 02, 2018 10:23 am
by jmburnod
Hi Richmond,
Thanks for the job
I tried your modded version. Bucket works as expected on IDE LC 8.1.6
I wonder what is the best way to implement it in my app.
I filled a bug report 20820

Re: Paint bucket issue

Posted: Tue Jan 02, 2018 12:53 pm
by jmburnod
Better but not perfect (modded version)
Try this :

1. Paint a circle with middle area transparent with yellow color
2. Choose bucket and click on transparent area --works
3. Choose a blue color
4. Click on yelow area -- circle border have some yellow pixels

Re: Paint bucket issue

Posted: Tue Jan 02, 2018 1:43 pm
by richmond62
NOT rocket science:
MSPP.png
As the RunRev Modded Paint tools stack has 3 substacks I have had to make the "canvas" stack a substack of the paint tools as well.
Paint.livecode.zip
(33.79 KiB) Downloaded 468 times

Re: Paint bucket issue

Posted: Thu Jan 11, 2018 6:25 pm
by jmburnod
I believe understand that this bucket unexpected behavior happens only with if we use no square brush before using the bucket to change color of a colored area. It seems bucket works fine with square brushes