forked from aseprite/aseprite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pen pressure sensitivity (fix aseprite#710)
- Added support to detect eraser tip on Linux (aseprite#610) - Related to aseprite#139 - Still needs works for gradients and better brush interpolations between stroke points - Requested several times, e.g. https://community.aseprite.org/t/1077 https://community.aseprite.org/t/1881, steam forum, etc.
- Loading branch information
Showing
26 changed files
with
586 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!-- Aseprite --> | ||
<!-- Copyright (C) 2020 Igara Studio S.A. --> | ||
<gui> | ||
<vbox id="dynamics"> | ||
<hbox> | ||
<buttonset id="values" columns="3"> | ||
<item text="" /> | ||
<item text="@.pressure" tooltip="@.pressure_tooltip" tooltip_dir="bottom" /> | ||
<item text="@.velocity" tooltip="@.velocity_tooltip" tooltip_dir="bottom" /> | ||
|
||
<item text="@.size" tooltip="@.size_tooltip" tooltip_dir="right" /> | ||
<item text="" maxheight="1" /> | ||
<item text="" maxheight="1" /> | ||
|
||
<item text="@.angle" tooltip="@.angle_tooltip" tooltip_dir="right" /> | ||
<item text="" maxheight="1" /> | ||
<item text="" maxheight="1" /> | ||
|
||
<item text="@.gradient" tooltip="@.gradient_tooltip" tooltip_dir="right" /> | ||
<item text="" maxheight="1" /> | ||
<item text="" maxheight="1" /> | ||
</buttonset> | ||
</hbox> | ||
|
||
<separator id="separator" text="@.max_point_value" horizontal="true" /> | ||
|
||
<grid id="options" columns="2" childspacing="0" expansive="true"> | ||
<label id="max_size_label" text="@.size" style="mini_label" /> | ||
<slider id="max_size" value="64" min="1" max="64" cell_align="horizontal" /> | ||
|
||
<label id="max_angle_label" text="@.angle" style="mini_label" /> | ||
<slider id="max_angle" value="0" min="-180" max="+180" cell_align="horizontal" /> | ||
|
||
<label id="gradient_label" text="@.gradient" style="mini_label" /> | ||
<hbox id="gradient_placeholder" /> | ||
</grid> | ||
|
||
</vbox> | ||
</gui> |
Submodule laf
updated
14 files
+10 −12 | gfx/hsl.cpp | |
+10 −12 | gfx/hsv.cpp | |
+4 −1 | os/CMakeLists.txt | |
+9 −9 | os/event.h | |
+5 −1 | os/osx/view.mm | |
+10 −0 | os/win/pen.cpp | |
+6 −0 | os/win/pen.h | |
+8 −1 | os/win/window.cpp | |
+15 −0 | os/x11/keys.cpp | |
+4 −0 | os/x11/keys.h | |
+30 −0 | os/x11/mouse.h | |
+29 −46 | os/x11/window.cpp | |
+13 −2 | os/x11/x11.h | |
+205 −0 | os/x11/xinput.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Aseprite | ||
// Copyright (C) 2020 Igara Studio S.A. | ||
// | ||
// This program is distributed under the terms of | ||
// the End-User License Agreement for Aseprite. | ||
|
||
#ifndef APP_TOOLS_DYNAMICS_H_INCLUDED | ||
#define APP_TOOLS_DYNAMICS_H_INCLUDED | ||
#pragma once | ||
|
||
#include "render/dithering_algorithm.h" | ||
#include "render/dithering_matrix.h" | ||
|
||
namespace app { | ||
namespace tools { | ||
|
||
enum class DynamicSensor { | ||
Static, | ||
Pressure, | ||
Velocity, | ||
}; | ||
|
||
struct DynamicsOptions { | ||
DynamicSensor size = DynamicSensor::Static; | ||
DynamicSensor angle = DynamicSensor::Static; | ||
DynamicSensor gradient = DynamicSensor::Static; | ||
int maxSize = 0; | ||
int maxAngle = 0; | ||
render::DitheringAlgorithm ditheringAlgorithm = render::DitheringAlgorithm::None; | ||
render::DitheringMatrix ditheringMatrix; | ||
|
||
bool isDynamic() const { | ||
return (size != DynamicSensor::Static || | ||
angle != DynamicSensor::Static || | ||
gradient != DynamicSensor::Static); | ||
} | ||
}; | ||
|
||
} // namespace tools | ||
} // namespace app | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.