forked from extern/easydiffusion
Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta
This commit is contained in:
commit
f641e6e69d
@ -834,6 +834,7 @@ function pixelCompare(int1, int2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// adapted from https://ben.akrin.com/canvas_fill/fill_04.html
|
// adapted from https://ben.akrin.com/canvas_fill/fill_04.html
|
||||||
|
// May 2023 - look at using a library instead of custom code: https://github.com/shaneosullivan/example-canvas-fill
|
||||||
function flood_fill(editor, the_canvas_context, x, y, color) {
|
function flood_fill(editor, the_canvas_context, x, y, color) {
|
||||||
pixel_stack = [{ x: x, y: y }]
|
pixel_stack = [{ x: x, y: y }]
|
||||||
pixels = the_canvas_context.getImageData(0, 0, editor.width, editor.height)
|
pixels = the_canvas_context.getImageData(0, 0, editor.width, editor.height)
|
||||||
|
Loading…
Reference in New Issue
Block a user