Commit graph

885 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
71323c51bb Simplify Interaction handling in game_of_life 2020-05-01 00:54:43 +02:00
Héctor Ramón Jiménez
ee97887409 Introduce Cell type in game_of_life 2020-05-01 00:50:40 +02:00
Héctor Ramón Jiménez
005ad6215a Update README of game_of_life example 2020-04-30 08:59:47 +02:00
Héctor Ramón Jiménez
98bc8cf2a7 Rename MouseCursor to mouse::Interaction 2020-04-30 08:16:38 +02:00
Héctor Ramón Jiménez
e2076612cb Implement time::every in iced_futures 2020-04-30 05:37:44 +02:00
Héctor Ramón Jiménez
e55cd9652e Split Input mouse event by ButtonState 2020-04-30 04:53:15 +02:00
Héctor Ramón Jiménez
af95d3972e Implement camera panning in game_of_life example 2020-04-30 04:12:13 +02:00
Héctor Ramón Jiménez
611d9e399c Clarify tick logic in game_of_life 2020-04-29 23:55:15 +02:00
Héctor Ramón Jiménez
5e014a70e8 Use sparse grid representation in game_of_life 2020-04-29 23:50:15 +02:00
Héctor Ramón Jiménez
5d12e194f4 Rename Cursor::*_position methods in canvas 2020-04-29 20:58:59 +02:00
Héctor Ramón Jiménez
70f86f998b Add game_of_life example
RIP John Conway
2020-04-29 08:25:42 +02:00
Héctor Ramón Jiménez
dc51080328 Introduce Cursor type in canvas 2020-04-29 04:25:49 +02:00
Héctor Ramón Jiménez
5586034d66 Display crosshair cursor in bezier_tool example 2020-04-29 03:23:27 +02:00
Héctor Ramón Jiménez
59403b6ca8 Remove OutOfBounds variant from MouseCursor 2020-04-29 03:11:15 +02:00
Héctor Ramón Jiménez
2539042b71 Remove Drawable and rename State to Program 2020-04-28 06:24:12 +02:00
Héctor Ramón Jiménez
7f1e7aea07 Remove unnecessary Container in bezier_tool 2020-04-28 04:41:25 +02:00
Héctor Ramón Jiménez
e65585ae17 Clip and cull Mesh2D primitives in iced_wgpu 2020-04-28 04:41:09 +02:00
Héctor Ramón Jiménez
fd1ceac363 Port bezier_tool example to use Canvas 2020-04-28 03:57:33 +02:00
Héctor Ramón Jiménez
e4eb0553de Allow canvas::State to produce messages 2020-04-28 03:52:12 +02:00
Héctor Ramón Jiménez
59b1e90661 Introduce Translate primitive in iced_wgpu 2020-04-28 03:52:10 +02:00
Héctor Ramón Jiménez
dc97d6f33e Remove interaction from solar_system example 2020-04-28 01:10:59 +02:00
Clark Moody
430f78a693 Abstract into ColorPicker and ColorSpace trait
Each color type implements ColorSpace to define its own representation
and update methods.

View sliders are implemented on the ColorPicker struct.
2020-04-27 16:25:13 -05:00
Clark Moody
3e71eaee37 Use Path::rectangle and Size for drawing swatches 2020-04-24 15:40:28 -05:00
Clark Moody
758a444d7f Replace text input fields for simple text 2020-04-24 15:31:12 -05:00
Clark Moody
27fadad324 Do not re-export Palette from iced_core 2020-04-24 15:20:00 -05:00
Clark Moody
4b90241ea1 Hex label text alignment 2020-04-24 15:13:22 -05:00
Clark Moody
39fd8ad9e9 TextInput fields with color encodings. Draw shades. 2020-04-24 15:13:22 -05:00
Clark Moody
b1328f193c More theme colors and gradient of lightness 2020-04-24 15:13:22 -05:00
Clark Moody
6b18e78e53 Use canvas to draw color palette for example 2020-04-24 15:13:22 -05:00
Clark Moody
664a63a4b8 Add example program: color palette
Sliders for many color spaces update as any other sliders are moved
around. Color is space is clamped to sRGB, so Lab and Lch color spaces
cannot be fully expressed.

TODO:
- Real-time manipulation of base color to create a color scheme.
- Show slider value under each slider
- Show output values in text boxes for each color space
2020-04-24 15:13:22 -05:00
Héctor Ramón Jiménez
592cc68506 Remove Layer trait and simplify Canvas 2020-04-19 21:55:23 +02:00
Héctor Ramón Jiménez
bb424e54c5 Add interactivity to solar_system example 2020-04-19 18:48:30 +02:00
Héctor Ramón Jiménez
0b5028b1ab Draft Program interactivity for Canvas 2020-04-19 14:39:30 +02:00
Héctor Ramón
99e020c7b5
Merge pull request #269 from hecrj/update-wgpu
Update `wgpu` to `0.5` in `iced_wgpu`
2020-04-16 04:59:56 +02:00
Héctor Ramón Jiménez
6d7f2b30cc Simplify drawing logic in clock example 2020-04-14 07:19:50 +02:00
Héctor Ramón Jiménez
46cd0891d2 Implement canvas::Path::circle helper method 2020-04-14 06:54:12 +02:00
Héctor Ramón Jiménez
c545af3577 Implement canvas::Path::rectangle helper method 2020-04-14 06:49:15 +02:00
Héctor Ramón Jiménez
81096ef454 Implement From<Color> for canvas::Fill 2020-04-14 06:38:06 +02:00
Héctor Ramón Jiménez
47d44af348 Fix bezier_tool placeholder text alignment 2020-04-10 02:49:04 +02:00
Héctor Ramón
d51b501d2f
Merge pull request #267 from robjtede/improve/canvas-cache-default
impl default for canvas cache
2020-04-09 00:34:37 +02:00
Rob Ede
6e7769b65d
impl default for canvas cache 2020-04-08 23:07:42 +01:00
Héctor Ramón Jiménez
d807ef367e Update wgpu to 0.5 in iced_wgpu 🎉 2020-04-07 05:48:21 +02:00
Héctor Ramón Jiménez
3c47e3e229 Simplify Language conversion in tour 2020-04-06 20:12:16 +02:00
Dmitry Kashitsyn
1a9bfd9e73
Radiobutton label is now impl Into<String> 2020-04-05 12:43:18 +07:00
Héctor Ramón Jiménez
92e148822f Add 0 suffix to float literals for consistency 2020-04-02 01:00:39 +02:00
Marli Frost
08da96c1c6
Scale the clock hands to the same size as the face 2020-04-01 23:19:56 +01:00
Héctor Ramón
e79e832092
Merge pull request #246 from hecrj/feature/application-flags
Application flags
2020-03-31 17:49:56 +02:00
Héctor Ramón Jiménez
990b4aa0b7 Merge branch 'master' into feature/container-padding 2020-03-31 17:11:58 +02:00
Héctor Ramón Jiménez
749a9588d7 Implement padding support for Container 2020-03-31 01:21:51 +02:00
Héctor Ramón Jiménez
ae009158cc Implement svg::Handle::from_memory
Useful if you already have your SVG data in memory.
2020-03-31 00:39:18 +02:00