Skip to content

Commit

Permalink
Merge pull request #12 from kimonp/general_refactor
Browse files Browse the repository at this point in the history
add desktop pic
  • Loading branch information
kimonp authored Jan 7, 2024
2 parents e58bb09 + 9c4f020 commit 2f6f03d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ using the Dioxus framework, adapted from the
The code from the original tutorial is about 50% Rust, 50% JavaScript.
With the Dioxus framework the code is 100% Rust.

<img src="game_of_life.png" alt="Game of Life" class="center" width="480" height="616">

## Versions

* 1.x: Works on web only, uses canvas for rendering
* 2.x: Works on web or desktop, uses SVG for rendering

## Desktop App
<img src="game_of_life_desktop.png" alt="Game of Life" class="center" width="530" height="741">

## Browser
<img src="game_of_life.png" alt="Game of Life" class="center" width="558" height="712">


## Demonstrates
* A Dioxus web/desktop app written completely in Rust.
* Frame animation using `request_animation_frame()` and abstracting to a Dioxus `use_state` hook.
Expand Down
Binary file modified game_of_life.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game_of_life_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2f6f03d

Please sign in to comment.