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

Request: flood fill function - fillc(x, y, color) #2022

Closed
eggbanana173 opened this issue Oct 14, 2022 · 5 comments
Closed

Request: flood fill function - fillc(x, y, color) #2022

eggbanana173 opened this issue Oct 14, 2022 · 5 comments
Labels
wish list Wouldn't it be nice if...

Comments

@eggbanana173
Copy link

SPANISH:
mi sugerencia es una función llamada "fillc(x, y, color)"
esta función rellenaría la pantalla de un color definido en una posición especifica como si fuera la herramienta de Paint "rellenar"
sin eliminar las figuras como lo hace "cls(color)"
Ejemplo:

-- este hipotetico ejemplo hace que rellene a un triangulo que es un "trib()"

function TIC()
 cls()
 trib(25,25,45,80,80,50,4)
 fillc(50,50,4)
end`
@Perverance
Copy link

Apoyo la idea!

@darltrash
Copy link

Translation:

My suggestion is a new function like "fillc(x, y, color)"
Which would fill the entire continuous space of a certain color, like the "fill" feature in MS Paint.
Ejemplo:

-- This hypothetical example fills a triangle created by "trib()"

function TIC()
 cls()
 trib(25,25,45,80,80,50,4)
 fillc(50,50,4)
end

@joshgoebel
Copy link
Collaborator

Personally I think this would make a great function for an external library. :-)

@joshgoebel joshgoebel added the wish list Wouldn't it be nice if... label Dec 4, 2022
@joshgoebel joshgoebel changed the title (SPANISH) función de relleno fillc(x, y, color) Request: flood fill function - fillc(x, y, color) Dec 17, 2022
@nesbox
Copy link
Owner

nesbox commented Jan 12, 2023

Hmm, I think it's out of scope of the current api, and @joshgoebel is right that this would make a great function for an external library

@nesbox nesbox closed this as completed Jan 12, 2023
@anescient
Copy link
Contributor

I've implemented this in #2683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wish list Wouldn't it be nice if...
Projects
None yet
Development

No branches or pull requests

6 participants