- 0.png (10.71 KiB) Viewed 18090 times
Fill exceeding bounds
Moderator: MSandro
Fill exceeding bounds
filled whole screen whereas I expected it to just fill the circle
Re: Fill exceeding bounds
Thanks for reporting this.
I've reproduced it. WIll fix.
-- John
I've reproduced it. WIll fix.
-- John
Re: Fill exceeding bounds
JFI The other fill functions do unexpected things as well
Re: Fill exceeding bounds
This bug is a bit strange. The fill example works the second time, so there is some initialization issue I don't yet understand. Do the other cases also work correctly the second time? If so, this is all caused by the same bug.
Re: Fill exceeding bounds
I am experiencing repeatability issues with several drawing functions not just this one
And this one gives wierd result - seems to be drawing something within the sprite image rather than the canvas
And this one gives wierd result - seems to be drawing something within the sprite image rather than the canvas
Re: Fill exceeding bounds
aah - the penny drops!
The Drawing and Pixels blocks refer to the image of the instance not the canvas :)
Simon
The Drawing and Pixels blocks refer to the image of the instance not the canvas :)
Simon
Re: Fill exceeding bounds
Still doesn't seem to work for me in V072 Win10
Re: Fill exceeding bounds
Interesting! The bug is fixed on other platforms, but not Windows. There's apparently a difference in the how Windows reads textures into bitmaps.
In other words, this bug arises from a low-level implementation issue. GP tries to make things work exactly the same on all platforms but sometimes something subtle slips through.
As a workaround, this works as expected if you set the pen color to any color except pure black. For example, (gray 1) will work and is basically black.
I might might make (gray 1) the default pen color as a workaround. :-)
In other words, this bug arises from a low-level implementation issue. GP tries to make things work exactly the same on all platforms but sometimes something subtle slips through.
As a workaround, this works as expected if you set the pen color to any color except pure black. For example, (gray 1) will work and is basically black.
I might might make (gray 1) the default pen color as a workaround. :-)
Re: Fill exceeding bounds
Make it the green one that you use as default option in all the colour ops and then no-one will ever know :)
Until they draw a black circle of course :)
Until they draw a black circle of course :)