Commit graph

22 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
faa7627ea4
Introduce web-colors feature flag to enable sRGB linear blending
This is how browsers perform color management. They treat
gamma-corrected sRGB colors as if they were linear RGB.

Correctness aside, this mode is introduced for legacy reasons. Most
UI/UX tooling uses this color management as well, and many have created
an intuition about how color should behave from interacting with a
browser.

This feature flag should facilitate application development with `iced`
in those cases.

More details: https://webcolorisstillbroken.com/
2023-05-31 21:31:58 +02:00
Héctor Ramón Jiménez
8ca7b884c0
Make Packed fully opaque
... by only allowing direct conversion from our `Gradient` types
2023-05-29 20:56:51 +02:00
Bingus
902e333148
Changed gradient::Packed to be repr(C) for direct gpu upload. 2023-05-26 10:13:18 -07:00
Bingus
413526ad09
Created "Packed" data structure for gradient data. 2023-05-25 10:49:26 -07:00
Bingus
a395e78596
Made gradient pack public for iced_graphics::gradient mod for use with GradientVertex2D. 2023-05-24 13:08:59 -07:00
Héctor Ramón Jiménez
4c1a082f04
Remove Builder abstractions for gradients 2023-05-19 03:32:21 +02:00
Bingus
6551a0b2ab
Added support for gradients as background variants + other optimizations. 2023-05-11 11:13:44 -07:00
Héctor Ramón Jiménez
5fd5d1cdf8
Implement Canvas support for iced_tiny_skia 2023-03-01 21:34:26 +01:00
Cory Forsstrom
e8aee70a69
Fix lint 2023-01-04 10:17:40 -08:00
Cory Forsstrom
ff49a95eca
Make location copy 2023-01-04 09:52:42 -08:00
Héctor Ramón Jiménez
1480ab2030
Fix broken documentation links 2022-11-10 00:10:53 +01:00
Héctor Ramón Jiménez
d8045e2dc3
Move Position and Location to gradient module 2022-11-03 05:15:32 +01:00
shan
fd5e1e5ab0 Adjusted gradient transform function to be more readable. 2022-10-07 16:55:55 -07:00
shan
a4a1262fa2 Fixed import issue with canvas in the gradient mod for situations where canvas feature is not enabled. 2022-10-07 16:28:13 -07:00
shan
12a87c54eb Added support for relative positioning of gradient fills. Addressed some PR feedback. 2022-10-07 12:01:07 -07:00
shan
f9a6efcaa0 Fixed some more imports/documentation. 2022-10-06 19:41:00 -07:00
shan
9c7bf417ac Added support for gradients to respect current frame transform. 2022-10-06 18:59:54 -07:00
shan
cb7c467654 Fixed lint issues & cleaned up some documentation. 2022-10-06 07:28:05 -07:00
shan
30432cbade Readjusted namespaces, removed Geometry example as it's no longer relevant. 2022-10-05 10:49:58 -07:00
shan
6e7b3ced0b Reworked wgpu buffers, updated glow side to have proper transform location storage, attempting to fix visibility modifiers, implemented some of the feedback received in initial PR. 2022-10-04 18:24:46 -07:00
shan
5d0fffc626 Fixed some importing issues since you can use a Shader::Gradient outside a Canvas widget, where it was previously only accessible. 2022-09-30 10:27:00 -07:00
shan
40f45d7b7e Adds linear gradient support to 2D meshes in the canvas widget. 2022-09-29 11:15:35 -07:00