Commit Graph

333 Commits

Author SHA1 Message Date
David Capello
ceb9cb3abd Add missing blend modes in blend_mode_to_string() (fix #1605) 2017-11-07 12:31:16 -03:00
David Capello
ed744bb223 Fix warning in PalettePicks::size() 2017-09-26 16:38:00 -03:00
David Capello
825ef892aa Fix warning in SelectedLayers::size() 2017-09-26 16:37:43 -03:00
David Capello
14ba0ab411 Add addition/subtract/divide blending modes
Changes:
* Added SeparatorInView() to add separators inside a ListBox or ComboBox.
* Added BlendModeItem() to represent each item in the blending modes
  ComboBox.
* Now a ComboBox can contain any kind of widgets as children (not just
  ListItem). This is required to add separators in the blending modes
  ComboBox.

Feature request:
https://community.aseprite.org/t/additive-blending-feature/121
2017-07-24 15:25:13 -03:00
David Capello
83e6f877f5 Put all blending function definitions in blend_funcs.h 2017-07-19 10:44:21 -03:00
David Capello
c06ce39357 Remove rgba/graya_blender_normal() without opacity 2017-07-19 10:33:01 -03:00
David Capello
fd408247cf Add some comments in rgba_blender_normal()
In this way we can see how we get the final blending formula which is
equivalent to Rc=(Sc*Sa + Bc*Ba*(1-Sa))/Ra
2017-07-18 23:33:54 -03:00
David Capello
dd3ce20133 Minor changes in rgba_blender_normal() function 2017-07-18 17:05:33 -03:00
David Capello
7cbf5fd420 Add some simple benchmarks for color blending functions 2017-07-18 17:03:12 -03:00
David Capello
f329f8b50c Snap brushes on grid corners (#1465) 2017-06-29 15:57:44 -03:00
David Capello
91c9cc29b0 Use fg/bg color alpha to modify custom brush alpha
Bug reported here: https://twitter.com/dovker/status/880137802142429184
2017-06-29 14:24:53 -03:00
David Capello
19f6dcfc58 Don't alter pasted image position if it's off canvas (fix #1447)
Now we limit only one pixel inside the sprite bounds.
2017-06-23 07:01:12 -03:00
David Capello
ab39ec63a8 Minor change in algo_line() comment 2017-06-23 06:18:08 -03:00
David Capello
88e0596692 Reimplement line algorithm (fix #1395) 2017-06-22 21:10:44 -03:00
David Capello
288b9aa8f9 Pass srcColor as argument to floodfill() 2017-06-15 15:24:27 -03:00
David Capello
ff453e8e83 Add default ctor to doc::Remap() 2017-06-02 10:00:14 -03:00
David Capello
144139f49d Add const modifier to doc::sort_palette() args 2017-06-02 09:59:31 -03:00
David Capello
131336d015 Add progress dialog/bar when we change color mode
Added a new app::RenderTaskJob to execute a lambda function as in a
background thread in a app::Job that can be used as a
render::TaskDelegate by some render functions.
2017-05-17 16:40:19 -03:00
David Capello
23272895c4 Move doc::DitheringMethod -> render::DitheringAlgorithm 2017-05-15 16:26:44 -03:00
David Capello
cc7bde6cd1 Fix some compiler warnings (implicit casts & unused vars) 2017-04-19 19:26:23 -03:00
David Capello
5e1c5af423 Restore slice user data correctly from undo/redo information 2017-04-12 11:51:29 -03:00
David Capello
5246c8341a Minor format fix in mask_boundaries.cpp 2017-04-06 15:22:36 -03:00
David Capello
1671411465 Add simple color selection for tag/user data colors 2017-04-04 20:02:29 -03:00
David Capello
9d2e542b53 Show all frame tags again in some special cases
When we add/remove frame tags or change the active document we have to show all tags again. Related to #920
2017-03-30 15:25:35 -03:00
David Capello
c23967b547 Fix soft light layer blending mode 2017-03-29 17:35:09 -03:00
David Capello
27bc151a37 Improve handling of overlapping frame tags in the Timeline (fix #768) 2017-03-26 21:52:50 -03:00
David Capello
fb64d5406a Add some colors for cel edges/guides in doc pref 2017-03-23 20:23:25 -03:00
David Capello
347ccfbb78 Add --list-slices CLI option 2017-03-16 10:35:26 -03:00
David Capello
9585d75794 Include <limits> needed by gcc 2017-03-15 15:13:08 -03:00
David Capello
f7cf65b245 Move <cursors> to <parts> on theme.xml
For this the "pivot" property was added to doc::SliceKeys.
2017-03-14 19:00:24 -03:00
David Capello
be3c9c1bcc Convert timeline widget to new styles
And remove the old skin::Style.
2017-03-13 18:13:38 -03:00
David Capello
643cad5c97 Add basic implementation of slice tool (#721) to modify theme parts
It still need support to export to .aseprite-data as <slice> XML elements, and animation support.
2017-03-06 19:27:43 -03:00
David Capello
a39627fe28 Merge branch 'master' into beta 2016-12-29 09:56:55 -03:00
David Capello
a56dff5515 Don't ignore "first frame" in tag properties dialog (fix #1350) 2016-12-29 09:42:44 -03:00
David Capello
afdb6b511f Fix all commands using uniqueCels() (sprite size, rotate/flip sprite, etc.)
We have to iterate all layers on commands that modify the whole
sprite. It doesn't matter if the layer is "browsable" (e.g. it's
expanded or collapsed).
2016-12-08 09:11:54 -03:00
David Capello
d0c9266eaf Merge branch 'master' into beta 2016-11-09 18:49:56 -03:00
David Capello
d6f2bec3fe Unlock document from backup thread when UI needs it
Added a new "weak lock" concept to RWLock/Document class. The background
thread that saves data recovery information can obtain this "weak lock"
which can be unlocked by the UI thread in any moment (i.e. when the user
needs the document immediately for UI.)
2016-11-09 17:22:55 -03:00
David Capello
5c3f75c64b Merge branch 'master' into beta 2016-11-07 18:17:42 -03:00
David Capello
ce6c85996e Update laf library (base/path is gone, use base/fs) 2016-11-01 19:14:05 -03:00
David Capello
21b6e8716d Merge branch 'beta' into ref-layer 2016-11-01 14:11:03 -03:00
David Capello
54e60f058f Merge branch 'master' into beta 2016-11-01 14:09:02 -03:00
David Capello
c2103df444 Move base module to laf library 2016-11-01 12:47:48 -03:00
David Capello
2e66b227f6 Merge branch 'beta' into ref-layer 2016-10-31 20:15:41 -03:00
David Capello
c60e0b915c Merge branch 'master' into beta 2016-10-27 13:00:57 -03:00
David Capello
cc18334c5a Changes in LOG/TRACE messages 2016-10-27 12:25:33 -03:00
David Capello
693a68844c New docio-lib to detect file format by content (fix #776) 2016-10-26 19:37:42 -03:00
David Capello
bc939d5638 New eyedropper mode to pick colors from reference layers 2016-10-13 21:19:25 -03:00
David Capello
1b053de2f2 Fix eyedropper/move tool for reference layers 2016-10-13 19:58:42 -03:00
David Capello
1de5837676 Remove fflush() call from Sprite::pickCels()
Probably from an infamous printf() debugging session.
2016-10-13 19:37:04 -03:00
David Capello
080e7e3f68 Add subpixel bounds for reference layer cels
Now we can move a reference layer cel in a X,Y position with floating
point coordinates (i.e. in a subpixel position).
2016-10-10 23:42:47 -03:00