summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1453 from ids1024/cowLibravatar Héctor Ramón2022-11-052-8/+14
|\ | | | | Use `Cow<'static, [u8]>` in image/svg, add constructors taking &[u8]`
| * Unify methods by leveraging `Into<Cow>` in `image` and `svg`Libravatar Héctor Ramón Jiménez2022-11-052-32/+7
| |
| * Use `Cow<'static, [u8]>` in image/svg, add constructors taking &[u8]`Libravatar Ian Douglas Scott2022-10-032-6/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | This should resolve https://github.com/iced-rs/iced/issues/580 by providing a way to use an image included with `include_bytes!` without needing to copy it to a `Vec` to create an image handle. It would be nice if these methods could also be `const`, but that isn't possible due to the hashing being done. This is technically a breaking change since `Handle::data()` is public. But if that is used, it's most likely in used somewhere that only relies on the type derefing to `&[u8]`.
* | Merge pull request #1443 from traxys/div_canvasLibravatar Héctor Ramón2022-11-055-7/+38
|\ \ | | | | | | Allow to replace an element instead of append to body for web rendering
| * | Allow providing a DOM identifier as a `target` for WasmLibravatar Héctor Ramón Jiménez2022-11-055-8/+34
| | |
| * | Allow to replace an element instead of append to bodyLibravatar traxys2022-11-051-3/+8
|/ /
* | Merge pull request #1448 from bungoboingo/fear/linear-gradientsLibravatar Héctor Ramón2022-11-0347-971/+2234
|\ \ | | | | | | Add linear gradient support to canvas widget
| * | Refactor imports of `triangle` modules in `iced_glow` and `iced_wgpu`Libravatar Héctor Ramón Jiménez2022-11-032-14/+13
| | |
| * | Remove unnecessary `pub(crate)` in `widget::canvas::frame`Libravatar Héctor Ramón Jiménez2022-11-031-5/+2
| | |
| * | Refactor imports of `widget::canvas::frame` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-7/+7
| | |
| * | Move re-export in `widget::canvas` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-1/+1
| | |
| * | Fix documentation example of `Canvas`Libravatar Héctor Ramón Jiménez2022-11-031-5/+9
| | | | | | | | | | | | ... so it makes sense when seen from the `iced` crate.
| * | Refactor imports in `widget::canvas` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-4/+3
| | |
| * | Move `mesh::Style` to `triangle` and reuse it in `fill` and `stroke`Libravatar Héctor Ramón Jiménez2022-11-0310-98/+72
| | |
| * | Export `Gradient` in `iced_graphics` rootLibravatar Héctor Ramón Jiménez2022-11-031-0/+1
| | |
| * | Remove blank line if `layer::mesh` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-1/+0
| | |
| * | Refactor exports in `graphics::layer`Libravatar Héctor Ramón Jiménez2022-11-031-5/+7
| | |
| * | Refactor imports in `solar_system` exampleLibravatar Héctor Ramón Jiménez2022-11-031-11/+12
| | |
| * | Move `Position` and `Location` to `gradient` moduleLibravatar Héctor Ramón Jiménez2022-11-032-90/+92
| | |
| * | Merge branch 'master' into fear/linear-gradientsLibravatar Héctor Ramón Jiménez2022-11-0326-62/+799
| |\ \
| * | | Reuse last set pipeline for `triangle` in `iced_wgpu`Libravatar Héctor Ramón Jiménez2022-11-033-2/+33
| | | |
| * | | Rename `buffers` module to `buffer`Libravatar Héctor Ramón Jiménez2022-11-037-66/+66
| | | | | | | | | | | | | | | | ... and move `StaticBuffer` to nested `static` module
| * | | Fix lints by `clippy`Libravatar Héctor Ramón Jiménez2022-11-039-28/+20
| | | |
| * | | Fix `multitouch` exampleLibravatar Héctor Ramón Jiménez2022-11-031-2/+3
| | | |
| * | | Convert colors to linear RGB in `gradient` pipelinesLibravatar Héctor Ramón Jiménez2022-11-032-12/+13
| | | |
| * | | Convert colors to linear RGB before uploading in `solid` pipelinesLibravatar Héctor Ramón Jiménez2022-11-032-5/+9
| | | |
| * | | Run `cargo fmt`Libravatar Héctor Ramón Jiménez2022-11-0317-110/+98
| | | |
| * | | Reuse last buffer in `Frame` if `mesh_style` matchesLibravatar Héctor Ramón Jiménez2022-11-034-42/+53
| | | |
| * | | Documentation changesLibravatar bungoboingo2022-10-191-1/+4
| | | |
| * | | Updated syntax for color stop iteration re: PR comments.Libravatar bungoboingo2022-10-181-2/+1
| | | |
| * | | Changed gradient builder to be more clear about what caused certain errors.Libravatar bungoboingo2022-10-181-22/+30
| | | |
| * | | Cleaned up namespaces re: PR comments.Libravatar bungoboingo2022-10-1813-161/+158
| | | |
| * | | Fixed fragment shader compatibility issues with GLES 3.0+Libravatar bungoboingo2022-10-102-14/+14
| | | |
| * | | Merge branch 'master' into fear/linear-gradientsLibravatar Bingus2022-10-0714-12/+257
| |\ \ \
| * | | | Jumped the gun on pushing; one more readability update :PLibravatar shan2022-10-071-3/+3
| | | | |
| * | | | Adjusted gradient transform function to be more readable.Libravatar shan2022-10-074-28/+25
| | | | |
| * | | | Fixed import issue with canvas in the gradient mod for situations where ↵Libravatar shan2022-10-075-33/+27
| | | | | | | | | | | | | | | | | | | | canvas feature is not enabled.
| * | | | More import adjusting.Libravatar shan2022-10-074-21/+20
| | | | |
| * | | | Adjusted reexports for clarity.Libravatar shan2022-10-073-4/+3
| | | | |
| * | | | Fixed an edge case where when gradient start/end are identical the GL ↵Libravatar shan2022-10-071-13/+19
| | | | | | | | | | | | | | | | | | | | fragment shader was not choosing the appropriate color.
| * | | | Added support for relative positioning of gradient fills. Addressed some PR ↵Libravatar shan2022-10-078-54/+182
| | | | | | | | | | | | | | | | | | | | feedback.
| * | | | Fixed some more imports/documentation.Libravatar shan2022-10-0612-26/+28
| | | | |
| * | | | Fixed some imports/documentation.Libravatar shan2022-10-063-7/+4
| | | | |
| * | | | Added support for gradients to respect current frame transform.Libravatar shan2022-10-067-56/+93
| | | | |
| * | | | Changed tesselation functions to take Vertex2D builder instead of using ↵Libravatar shan2022-10-061-17/+31
| | | | | | | | | | | | | | | | | | | | lyon's builtin Point type to avoid extra copies.
| * | | | Fixed lint issues & cleaned up some documentation.Libravatar shan2022-10-0624-40/+33
| | | | |
| * | | | Reduced memory transfer of OpenGL gradient uniform upload. Rearranged ↵Libravatar shan2022-10-057-126/+81
| | | | | | | | | | | | | | | | | | | | gradient uniforms on OpenGL side to be more performant.
| * | | | Adjusted gradient uniforms to be more tightly packed.Libravatar shan2022-10-052-31/+37
| | | | |
| * | | | Fixed issue with offsets not being reset properly leading to borked draws.Libravatar shan2022-10-052-2/+10
| | | | |
| * | | | Readjusted namespaces, removed Geometry example as it's no longer relevant.Libravatar shan2022-10-0527-625/+394
| | | | |