Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
li3zhen1 authored Oct 10, 2023
1 parent 7a848e2 commit dc9eda9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A visualization-purposed force simulation library.

<img width="712" alt="ForceDirectedGraphLight" src="https://github.com/li3zhen1/Grape/assets/45376537/e0e8049d-25c2-4e5c-9623-6bf43ddddfa5">

#### Examples
### Examples

This is a force directed graph visualizing the data from [Force Directed Graph Component](https://observablehq.com/@d3/force-directed-graph-component), running at 120FPS on a SwiftUI Canvas. Take a closer look at the animation:

Expand All @@ -20,9 +20,9 @@ https://github.com/li3zhen1/Grape/assets/45376537/6a1c9510-8af6-4967-9c05-c304b2



#### Features
### Features

| | 2D | 3D | Metal |
| | 2D simd | 3D simd | Metal |
| --- | --- | --- | --- |
| **NdTree** || 🚧 | |
| **Simulation** || 🚧 | 🚧 |
Expand All @@ -35,7 +35,7 @@ https://github.com/li3zhen1/Grape/assets/45376537/6a1c9510-8af6-4967-9c05-c304b2
| **SwiftUI View** | 🚧 | | |


#### Usage
### Usage

```swift
import ForceSimulation
Expand All @@ -56,6 +56,6 @@ sim.createCollideForce(radius: .constant(5))

See [Example](https://github.com/li3zhen1/Grape/tree/main/Examples/GrapeView) for more details.

#### Perfomance
### Perfomance

Grape uses simd to calculate position and velocity. Currently it takes 0.046 seconds to iterate 120 times over the example graph (with 77 vertices, 254 edges, with manybody, center and link forces, release build, on a 32GB M1 Max).

0 comments on commit dc9eda9

Please sign in to comment.