mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:27:35 +00:00
PixelPaint: Add a GradientTool
This patch adds a new gradient tool to pixelpaint that allows us to fill the canvas with a smooth color gradient outline at the edge of the filled area.
This commit is contained in:
parent
e7ceaf8a6d
commit
452285a3f8
6 changed files with 419 additions and 4 deletions
|
@ -92,13 +92,13 @@ protected:
|
|||
|
||||
virtual Gfx::IntPoint editor_stroke_position(Gfx::IntPoint pixel_coords, int stroke_thickness) const;
|
||||
|
||||
void set_primary_slider(GUI::ValueSlider* primary) { m_primary_slider = primary; }
|
||||
void set_secondary_slider(GUI::ValueSlider* secondary) { m_secondary_slider = secondary; }
|
||||
void set_primary_slider(GUI::AbstractSlider* primary) { m_primary_slider = primary; }
|
||||
void set_secondary_slider(GUI::AbstractSlider* secondary) { m_secondary_slider = secondary; }
|
||||
|
||||
static Gfx::IntPoint constrain_line_angle(Gfx::IntPoint start_pos, Gfx::IntPoint end_pos, float angle_increment = M_PI / 8);
|
||||
|
||||
GUI::ValueSlider* m_primary_slider { nullptr };
|
||||
GUI::ValueSlider* m_secondary_slider { nullptr };
|
||||
GUI::AbstractSlider* m_primary_slider { nullptr };
|
||||
GUI::AbstractSlider* m_secondary_slider { nullptr };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue