Paint bucket issue
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Paint bucket issue
Hi All,
When i use paint bucket to change color of an uniform area, some points, area or line don't take the selected color.
I tested it with versions 7.0.6, 8.1.6 and 8.1.8 with the same result.
To reproduce it:
1. choose large brush and a color (blue)
2. draw a large area
3. Choose bucket tool
4. choose an other color (red)
5. click on the blue area
Unfortunately, that make paint bucket unusable while that is a precious tool for paint app for kids.
Do you consider this as a bug ?
Best regards
Jean-Marc
When i use paint bucket to change color of an uniform area, some points, area or line don't take the selected color.
I tested it with versions 7.0.6, 8.1.6 and 8.1.8 with the same result.
To reproduce it:
1. choose large brush and a color (blue)
2. draw a large area
3. Choose bucket tool
4. choose an other color (red)
5. click on the blue area
Unfortunately, that make paint bucket unusable while that is a precious tool for paint app for kids.
Do you consider this as a bug ?
Best regards
Jean-Marc
https://alternatic.ch
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Re: Paint bucket issue
I tried this in LC 8.1.8 and 8.1.9 rc1 and it works fine. I did notice that the brush tool shape pallet gets placed to the left of the tools pallet. So if your tool pallet is close the the left of the screen the tool shape pallet could be placed off screen. That is the only bug I see.
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Paint bucket issue
Oddly enough, after 16 years of working with RR/LiveCode I have never used the Paint Tools:
I've always viewed them as needless leftovers from the HyperCard heritage.
I've always viewed them as needless leftovers from the HyperCard heritage.
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Paint bucket issue
Thanks for your quick reply.
I dont understand why it works for you.
Here is a stack with two examples bad results.
I dont understand why it works for you.
Here is a stack with two examples bad results.
- Attachments
-
- stBucketIssue.zip
- (6.26 KiB) Downloaded 151 times
https://alternatic.ch
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Paint bucket issue
paint tools in LiveCode detect subtle differences in the colour of your initial
shapes . . .
IF a shape contains a 100% uniform colour the paint tools should fill it entirely:
I think your shapes look 100% uniform to the human eye, but not to the computer.
My own experience with brush tools (admittedly not in LiveCoode)
is that they draw a non-uniform coloured line that is no good at all
if you are looking for something to later recolour with a paint-bucket tool.
I suspect that the
shapes . . .
IF a shape contains a 100% uniform colour the paint tools should fill it entirely:
I think your shapes look 100% uniform to the human eye, but not to the computer.
My own experience with brush tools (admittedly not in LiveCoode)
is that they draw a non-uniform coloured line that is no good at all
if you are looking for something to later recolour with a paint-bucket tool.
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Paint bucket issue
Hi Richmond
Thanks for the image (I was lazy this morning)
Thanks for the image (I was lazy this morning)
Yes,I suspect that the paint tools in LiveCode detect subtle differences in the colour of your initial
shapes . . .
Yes, but how can i produce it with standard brush and color from tools palette?I think your shapes look 100% uniform to the human eye, but not to the computer.
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Paint bucket issue
I tried using an image id as brush.
Same result I described in prev posts
Same result I described in prev posts
https://alternatic.ch
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Paint bucket issue
I don't think you can . . .how can i produce it with standard brush and color from tools palette?
The paint tools are set up as . . . paint tools
and paint tools are meant to work like a physical paintbrush and so forth:
if this is unclear go and get a paint brush, slop it in some paint and TRY
to paint a line with a hard margin and evenly distributed colour: you won't
manage that: AND we should be very, very grateful indeed,
because we would not have fantastic paintings if that were so.
Vector things such as graphic objects in LiveCode can be filled with
uniform colour for the simple reason that they are 'just' walls to contain paint,
and Tintoretto (who painted that picture) would have had a bad attack of
the dry boak.
If you take a close look at the revTools palette you will notice that the painting
"thingies" are divided into 2 groups:
Those ABOVE the red line are for VECTOR graphics, and those
BELOW the red line are for PAINT (rasterised) graphics, and they
are like OIL and WATER: they just don't mix.
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Paint bucket issue
Yes, I can.I don't think you can . . .
I create the two images i posted in the stack with standard brush and colors.
There are paint image, no vector image
https://alternatic.ch
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Paint bucket issue
Indeed you did.Yes, I can.
I create the two images i posted in the stack with standard brush and colors.
There are paint image, no vector image
What you CANNOT do, however, is rely on what you create to be a single,
solid colour so you can subsequently fill it with a different colour using
the bucket tool.
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Paint bucket issue
I don't create anything, I just use livecode tools to create an single and solid color, but it doesn't work.What you CANNOT do, however, is rely on what you create to be a single,
solid colour
I attached a demo stack to watch what happens
https://alternatic.ch
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Paint bucket issue
Well, the computer doesn't do it by itself.I don't create anything
I downloaded your DEMO and got this:
Which, is, obviously, a load of rubbish.
So, I modified your script to produce this:
and exported is as a PNG image, and then opened it in GIMP.
This FILLED evenly with a single colour:
Which DOES suggest there is something wrong with LiveCode's bucket tool
(apologies for earlier comments).
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Paint bucket issue
Hi J-M,
the bucket tool is designed for filling closed shapes, especially closed shapes drawn with the line tool. It should not fill the bordering lines.
Trying to fill the border lines itself would need another flood fill algorithm that is not available in the paint tools.
For example if you draw (freehand) an closed oval shape of radius 20 with a linesize of 10 then this will be filled perfectly by clicking _inside_, not on a pixel of the bordering line. But trying to fill _the line itself_ shows the "bug" that you describe.
@ALL: Have a nice end of 2017!
H.
the bucket tool is designed for filling closed shapes, especially closed shapes drawn with the line tool. It should not fill the bordering lines.
Trying to fill the border lines itself would need another flood fill algorithm that is not available in the paint tools.
For example if you draw (freehand) an closed oval shape of radius 20 with a linesize of 10 then this will be filled perfectly by clicking _inside_, not on a pixel of the bordering line. But trying to fill _the line itself_ shows the "bug" that you describe.
@ALL: Have a nice end of 2017!
H.
shiftLock happens
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Paint bucket issue
MetaCard Paint Tools
Oddly enough THIS does work using the
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Paint bucket issue
I was almost sure I used bucket with succes for what i described
I tested it with LC 4.6.3, bucket works.
I can fill a close area and change the color of a single and solid area perfectly
I tested it with LC 4.6.3, bucket works.
I can fill a close area and change the color of a single and solid area perfectly
https://alternatic.ch