Tobias Hunger
09e272abb6
Janitor: Fix clippy::useless_conversion
2021-08-18 00:24:51 +02:00
Tobias Hunger
aea4ecca99
Apply pre-commit hooks to all files
2021-08-17 22:38:16 +02:00
Olivier Goffart
4d496c2c44
Fix a table in the example README
2021-08-13 11:48:12 +02:00
Olivier Goffart
40afcd4070
Fix the spinner for the slide puzzle firefox
...
The layout of the html here is a bit different for the slize puzzle
than for other demo because it is using a display: grid.
As a result, placing the spinner in the grid would cause the canvas
to be resized when the spinner goes away, with firefox. Since we don't
get resize event when the canvas gets resized withtout the whole page
being resized, the scaling and coordinate were off.
So put the spinner outside of the grid
2021-08-13 10:19:42 +02:00
Olivier Goffart
429e5bdb07
Add link to SixtyFPS homepage from the wasm demo pages
2021-08-12 14:19:29 +02:00
Simon Hausmann
efb4a03a9a
Apply the loading spinner from the plotter example to the todo example
2021-08-12 10:17:00 +02:00
Simon Hausmann
bdf7912a4d
Apply the loading spinner from the plotter example to the slide puzzle
2021-08-12 10:15:20 +02:00
Simon Hausmann
83afe6a4f2
Apply the loading spinner from the plotter example to the old printer demo
2021-08-12 10:13:37 +02:00
Simon Hausmann
06c15df76a
Apply the loading spinner from the plotter example to the printer demo
2021-08-12 10:11:40 +02:00
Simon Hausmann
a0a3e6e8ab
Apply the loading spinner from the plotter example to the memory game
2021-08-12 10:04:55 +02:00
Simon Hausmann
7fef85b59e
Apply the loading spinner from the plotter example to the imagefilter
2021-08-12 10:03:19 +02:00
Simon Hausmann
9779408e35
Apply the loading spinner from the plotter example to the gallery
2021-08-12 10:00:44 +02:00
Simon Hausmann
3456842c8a
Simplify spinner stopping a little bit
...
Calling the async function returns a promise, which we can just hook into via finally().
That's less lines of code
2021-08-12 09:58:28 +02:00
Simon Hausmann
9546f8caa7
Shrink the spinner CSS a little bit
...
... by disabling vscode's beautify formatter.
2021-08-12 09:58:28 +02:00
Simon Hausmann
b2fb339df9
Add a simple loading spinner animation for the plotter wasm demo
2021-08-12 09:58:28 +02:00
Simon Hausmann
e24ff2bff4
Add the plotter wasm build to the example README
2021-08-11 17:23:39 +02:00
Simon Hausmann
481c977b68
Simplify the image filter example
...
Use a callback to produce the filtered image, instead of back and forth of
properties.
2021-08-11 17:21:30 +02:00
Simon Hausmann
92655486da
Simplify plotter example
...
Use a callback that produces the plot from a pitch as the image source.
2021-08-11 17:13:21 +02:00
Simon Hausmann
8903adb584
Add a WASM build of the plotters example
...
... which uses an intermediate drawing backend to skip the text on the axis, as
that requires TrueType fonts form the filesystem.
2021-08-11 16:19:10 +02:00
Olivier Goffart
0ebd92c253
ImageFilter demo: "Blur" is the default filter, so it should show that by default
2021-08-11 16:05:06 +02:00
Olivier Goffart
b62d600a3a
Make the imagefilter demo self-contained
2021-08-11 15:44:36 +02:00
Simon Hausmann
962b6b2205
internal cleanup: remove stray getrandom dependency
2021-08-11 15:32:05 +02:00
Simon Hausmann
89717d7aa3
Speed up the image filter wasm demo
...
Skip all the decoders/encoders we don't need
2021-08-11 08:24:51 +02:00
Simon Hausmann
8879af374a
Add the plotter example to the README
...
The screenshot link is broken right now, but that's due to the website.
Hopefully in the future we can add a wasm version.
2021-08-10 22:45:32 +02:00
Olivier Goffart
ffccef4e0c
Examples: replace all _ by - in identifiers
2021-08-10 22:21:01 +02:00
Simon Hausmann
0be0e07116
Fix build
...
Amends commit 0852a7661b
2021-08-10 17:30:30 +02:00
Simon Hausmann
7c38042dde
Add the imagefilter to the examples README
2021-08-10 17:24:05 +02:00
Simon Hausmann
efb207b299
imagefilter example: use a blur filter as default
...
It's visually clearer what's filtered and what's not
2021-08-10 17:12:23 +02:00
Simon Hausmann
7a7550381d
Minor cleanup
...
Remove unnecessary getrandom dependency from the wasm build of
the imagefilter example.
2021-08-10 15:56:01 +02:00
Simon Hausmann
0215cc8505
Fix up the imagefilter UI a little
...
Add labels for the filtered image, too, and use a horizontal
layout.
2021-08-10 15:56:01 +02:00
Simon Hausmann
1a08b392e3
Fix the wasm build of the imagefilter example
2021-08-10 15:56:01 +02:00
Simon Hausmann
d023475f1c
Rename Image::new_rgb*() to Image::from_rgb*
2021-08-10 15:56:01 +02:00
Simon Hausmann
50f4b08b6e
Remove imgref and rgb dependencies from the plotter example
...
With `as_bytes_mut()` on `SharedPixelBuffer` those dependencies are not needed anymore,
they are now implicit.
2021-08-10 15:56:01 +02:00
Simon Hausmann
f237e1a09b
Remove unnecessary imgref dependency from the image filter example
2021-08-10 15:56:01 +02:00
Simon Hausmann
485fc72d15
Adapt the plotter example to the SharedImageBuffer API removal
2021-08-10 15:56:01 +02:00
Simon Hausmann
42ba8ba7b0
Adapt the imagefilter example to the SharedImageBuffer API removal
2021-08-10 15:56:01 +02:00
Simon Hausmann
2d374a3ff9
internal cleanup: Remove commented out plotters dependency
2021-08-10 15:56:01 +02:00
Simon Hausmann
10da1a9499
Add an example to filter images in Rust
...
This demonstrates how to use the image crate and feed data into
SixtyFPS.
2021-08-10 15:56:01 +02:00
Simon Hausmann
1d83837228
Add a plotter example using plotters
...
This is kind of an interactive port of
https://github.com/38/plotters/blob/master/examples/3d-plot2.rs
2021-08-10 15:56:01 +02:00
ogoffart
53f286258c
Bump version number to 0.1.1
2021-08-10 08:06:20 +00:00
Simon Hausmann
043407eb74
Cleanup: Remove use of the Clip element
2021-08-09 13:01:30 +02:00
Olivier Goffart
a0a8cc3bc9
Mark the TabWidget as internal and re-export it from the style
2021-08-09 12:41:03 +02:00
Olivier Goffart
63db0959f9
Fix the TabWidget's ugly style size constraints
2021-08-06 15:58:13 +02:00
Olivier Goffart
d41839abe3
Compiler pass for the TabWidget
...
it will lower the TabWidget into a TabWidgetImpl and the tabs into TabImpl
2021-08-06 15:58:13 +02:00
Tobias Hunger
9c12421c18
Janitor: Fix clippy::option_map_unit_fn
2021-08-05 23:41:56 +02:00
Olivier Goffart
b87ae8ee72
Make circledraw example look a bit better by default
...
Give it a default size
2021-07-30 11:19:19 +02:00
Simon Hausmann
14c6819791
Add support for icons in the Button widget
...
The icon in the gallery example was generated via https://emoji.aranja.com
2021-07-27 19:37:06 +02:00
Simon Hausmann
530d47ff1a
printer demo: minor tweak
...
Like with regular check boxes, allow clicking on the text to also toggle
2021-07-23 14:33:13 +02:00
Tobias Hunger
9539a53480
Janitor: Fix clippy::redundant_clone
2021-07-23 13:48:52 +02:00
Olivier Goffart
6aa6dec9b4
Small simplification on the usages of ListView
...
Now that the height computation is done properly
2021-07-22 17:29:53 +02:00