Paint bucket issue

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Paint bucket issue

Post by richmond62 » Mon Jan 01, 2018 11:52 am

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Paint bucket issue

Post by richmond62 » Mon Jan 01, 2018 12:26 pm

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 178 times
You'll have to fiddle around with the Paint Tools script a bit so that it opens
as a palette.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Paint bucket issue

Post by jmburnod » Mon Jan 01, 2018 12:38 pm

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
https://alternatic.ch

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Paint bucket issue

Post by richmond62 » Mon Jan 01, 2018 12:40 pm

I prefer send a bug report...
And wait for donkey's ages: OK 8)
MCPT.png
MCPT.png (25.8 KiB) Viewed 6353 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 6346 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Paint bucket issue

Post by richmond62 » Mon Jan 01, 2018 4:07 pm

toolz.png
toolz.png (7.86 KiB) Viewed 6333 times
MCPT.livecode.zip
(1.61 KiB) Downloaded 163 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Paint bucket issue

Post by richmond62 » Mon Jan 01, 2018 8:21 pm

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 6312 times
PaintMyKnees.png
PaintMyKnees.png (39.87 KiB) Viewed 6312 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Paint bucket issue

Post by richmond62 » Mon Jan 01, 2018 8:28 pm

These ALSO work "how they should" with your stack:
YourStack with old paint tools.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Paint bucket issue

Post by richmond62 » Mon Jan 01, 2018 8:31 pm

oldpaint.png
oldpaint.png (5.36 KiB) Viewed 6312 times
Paint.livecode.zip
My Modded version
(4.5 KiB) Downloaded 166 times
revpainttools.rev.zip
Original version
(4 KiB) Downloaded 184 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.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Paint bucket issue

Post by bogs » Mon Jan 01, 2018 8:50 pm

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.
Image

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Paint bucket issue

Post by jmburnod » Tue Jan 02, 2018 10:23 am

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
https://alternatic.ch

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Paint bucket issue

Post by jmburnod » Tue Jan 02, 2018 12:53 pm

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
https://alternatic.ch

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Paint bucket issue

Post by richmond62 » Tue Jan 02, 2018 1:43 pm

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 171 times

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Paint bucket issue

Post by jmburnod » Thu Jan 11, 2018 6:25 pm

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
https://alternatic.ch

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”