David Capello
fc7f96149f
Add color names to apple-ii palette
2017-06-10 10:54:54 -03:00
David Capello
e53fd6f94c
Include the complete opaque c0 and c1 color in the dithered gradient (two more steps)
2017-06-09 18:56:39 -03:00
David Capello
6c4218a8ac
Fix bug w/gradient w/alpha < 0
...
As now we render the gradient, the RGB values are not premultiplied (as
with pixman).
2017-06-09 17:53:05 -03:00
David Capello
904d7dabe5
Avoid calling Vector2d::normalize()/magnitude() several times
2017-06-09 17:48:03 -03:00
David Capello
2a15c58b5b
Now DitheringSelector is used to select just a DitheringMatrix for gradients
2017-06-09 17:31:41 -03:00
David Capello
317b493fb7
Move gradient rendering code to render library
2017-06-09 17:18:28 -03:00
David Capello
0bab4e7ae7
Render the gradient with the dithering matrix directly
...
In this way we don't need a dithering algorithm anymore, because instead
of converting the RGB gradient to indexed using the dithering algorithm,
we render the gradient directly using the dithering matrix + the
gradient factor to choose one of the gradient colors.
2017-06-09 17:04:00 -03:00
David Capello
26bc2c70db
Now we render the gradient
2017-06-09 16:50:39 -03:00
David Capello
8399af9268
Fix crash in case that the news RSS is malformed
2017-06-09 12:45:39 -03:00
David Capello
b7b9300703
Add Amstrad CPC color palette
2017-06-06 15:08:43 -03:00
David Capello
1eea5ead48
Update README with new palettes
2017-06-02 12:49:59 -03:00
David Capello
dee5f327cb
Add CGA0/1/3rd palettes
2017-06-02 11:19:43 -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
2c02e67ebc
Update DitherItem preview when the palette is modified
2017-06-01 18:18:44 -03:00
David Capello
7a75751dd7
Move dithering algorithm to ordered_dither.cpp
2017-06-01 17:14:15 -03:00
David Capello
7a28606241
Avoid showing original sprite on the change "Color Mode" preview
2017-05-31 16:34:46 -03:00
David Capello
d5c47e2213
Make Entry fields bigger in ContextBar to avoid text scrolling
2017-05-31 16:21:34 -03:00
David Capello
ea130da9a7
Added new palettes by ENDESGA Studios
2017-05-31 10:14:00 -03:00
David Capello
f4fc77e050
Add search field on palette popup
2017-05-30 15:46:54 -03:00
David Capello
399314b407
Load preset palettes faster
...
Load all queued resources on each onTick() instead of one per tick.
2017-05-30 14:58:49 -03:00
David Capello
f1454da7c2
Add nyx8 color palette by Javier Guerrero
...
Source:
http://javierg-arts.deviantart.com/art/Nyx-Palette-8-colors-682788355
2017-05-30 14:39:51 -03:00
David Capello
018d5dc4a9
Fix some color indicators that aren't visible with specific selected colors
2017-05-30 14:38:48 -03:00
David Capello
afdf156a0e
Keep alpha picking colors from bottom slider in color wheel
2017-05-30 13:57:44 -03:00
David Capello
629c359627
Draw alpha slider in ColorSliders correctly
2017-05-30 13:52:53 -03:00
David Capello
1576e42ff2
Add alpha slider in ColorPicker ( #707 )
2017-05-30 13:38:40 -03:00
David Capello
b8aa45023a
Fix ColorWheel bottom slider
2017-05-30 11:55:56 -03:00
David Capello
e8c1975f63
Fix ColorWheel harmonies picker
2017-05-29 17:24:13 -03:00
David Capello
b7f8efc0a3
Add HSV-saturation/value sliders in ColorSpectrum/Wheel (related to #707 )
...
Simplified ColorSelectors using more shared code in the base class.
2017-05-29 16:42:27 -03:00
David Capello
29a49ad7fa
Add HSL color selection (related to #707 )
2017-05-29 14:20:42 -03:00
David Capello
c297031152
Minor fix for Hue color slider in relative mode (from -180 to +180)
2017-05-26 15:55:53 -03:00
David Capello
b69e791207
Use color sliders for Hue/Saturation dialog
2017-05-26 15:40:21 -03:00
David Capello
9c39b4ad7a
Use full color range from [0,0xffff] in gradients
2017-05-26 15:13:26 -03:00
David Capello
158ace5e2c
Shift key can be used to snap angle on Gradient tool
2017-05-26 15:08:52 -03:00
David Capello
e316a49cb9
Fix crash using Import Sprite Sheet (active tool = nullptr)
2017-05-26 15:03:43 -03:00
David Capello
5ad681281d
Fix exporting slices data in JSON files on Export Sprite Sheet
2017-05-26 14:36:43 -03:00
David Capello
54e8a59cbd
Fix crash changing opaque/transparent color on MovingPixelsState state
...
The MovingPixelsState() ctor was generating a
MovingPixelsState::onTransparentColorChange() for the previous state
with a m_pixelsMovement==nullptr.
2017-05-26 12:00:15 -03:00
David Capello
93d59f87e9
Fix RenderTaskJob compilation on MSVC
...
We cannot refer the "job" instance in the lambda captures on the same
statement on MSVC compiler.
2017-05-26 11:30:58 -03:00
David Capello
239ac42378
Add Hue/Saturation filter ( fix #1186 )
...
Added new gfx::Hsl class to handle HSL color model(related to #707 and #1102 )
2017-05-24 19:07:10 -03:00
David Capello
b4ea90a266
Add Console::hasText() so tests can check if there are errors in the console
...
This is useful in case that we want to test (e.g.) save/load document
operations that print errors in the console. So checking the console
output (this hasText flag) we can determine if the operation was
completely successful or failed.
2017-05-24 14:55:13 -03:00
David Capello
6f09a826fd
Add assert on read_compressed_image()
2017-05-24 14:54:09 -03:00
David Capello
ae67cab015
Add dithering options for Gradient tool ( #418 )
2017-05-23 20:41:30 -03:00
David Capello
adbcc75fad
Hide dithering options when we convert to non-Indexed
2017-05-23 16:00:33 -03:00
David Capello
89acb421e0
Remember ColorModeWindow position
2017-05-23 15:41:56 -03:00
David Capello
4fc19c5466
Change "old-ordered" dithering algorithm to just "old"
2017-05-23 14:56:06 -03:00
David Capello
523b6a0a51
Show a DitheringSelector item in the combobox when it's closed
...
In this way we can show listbox/custom items in the combobox when we
select an item instead of showing text-only (the ui::Entry).
2017-05-23 13:41:11 -03:00
David Capello
bcdf598392
Add widget to choose dithering algorithm + matrix
2017-05-22 15:44:08 -03:00
David Capello
829cc9ebec
Fix ordered_dither_tests
2017-05-22 15:21:10 -03:00
David Capello
90132698a6
Move RenderTaskJob impl to render_task_job.cpp
2017-05-22 14:37:29 -03:00
David Capello
5ef6aac925
Add --dithering-matrix CLI option
...
Now the dithering matrix used in ordered dithering algorithm is configurable.
2017-05-19 15:49:31 -03:00