mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
PixelPaint: Start using Editing-Masks for some tools
This patch starts to integrate the usage of Editing-Masks for the following tools: Spray-Tool, Brush-Tool and Erase-Tool
This commit is contained in:
parent
0a120e239a
commit
d9d9103cbb
3 changed files with 4 additions and 3 deletions
|
@ -99,7 +99,7 @@ void BrushTool::draw_point(Gfx::Bitmap& bitmap, Gfx::Color color, Gfx::IntPoint
|
|||
auto falloff = get_falloff(distance) * flow_scale;
|
||||
auto pixel_color = color;
|
||||
pixel_color.set_alpha(AK::min(falloff * 255, 255));
|
||||
bitmap.set_pixel(x, y, bitmap.get_pixel(x, y).blend(pixel_color));
|
||||
set_pixel_with_possible_mask(x, y, bitmap.get_pixel(x, y).blend(pixel_color), bitmap);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue