1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:27:35 +00:00

PixelPaint: Basic brush tool

This patch adds a very basic implementation of the classic brush
tool. It features a wide brush with a falloff around the edges.
This commit is contained in:
BenJilks 2020-09-21 20:45:53 +01:00 committed by Andreas Kling
parent 1208f3fd75
commit 5f15fb17d9
5 changed files with 167 additions and 0 deletions

View file

@ -25,6 +25,7 @@
*/
#include "ToolboxWidget.h"
#include "BrushTool.h"
#include "BucketTool.h"
#include "EllipseTool.h"
#include "EraseTool.h"
@ -127,6 +128,7 @@ void ToolboxWidget::setup_tools()
add_tool("Move", "move", { 0, Key_M }, make<MoveTool>());
add_tool("Pen", "pen", { 0, Key_N }, make<PenTool>());
add_tool("Brush", "brush", { 0, Key_P }, make<BrushTool>());
add_tool("Bucket Fill", "bucket", { Mod_Shift, Key_B }, make<BucketTool>());
add_tool("Spray", "spray", { Mod_Shift, Key_S }, make<SprayTool>());
add_tool("Color Picker", "picker", { 0, Key_O }, make<PickerTool>());