Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fill bug #1

Open
banister opened this issue Sep 8, 2009 · 1 comment
Open

Fill bug #1

banister opened this issue Sep 8, 2009 · 1 comment
Labels

Comments

@banister
Copy link
Owner

banister commented Sep 8, 2009

When performing a flood fill with a texture (or a color) that is the same as the 'start color' the flood fill algorithm hangs.

@banister
Copy link
Owner Author

banister commented Sep 8, 2009

current work-around is to use a color_control block to slightly modify the filling color to one that is a bit different. e.g

fill 10, 20, :texture => image, 
:color_control => proc do |c1, c2|
    if c1 == c2 
        c2[3] =  (c2[3] + 0.01) % 1
    end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant