Skip to content

Commit

Permalink
starting in on a couple examples
Browse files Browse the repository at this point in the history
  • Loading branch information
shnewto committed Mar 3, 2024
1 parent 006b40c commit 03527c2
Show file tree
Hide file tree
Showing 8 changed files with 898 additions and 17 deletions.
11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ repository = "https://github.com/shnewto/edges"

license = "MIT OR Apache-2.0"




[features]
default=[]
bevy=["dep:bevy"]
Expand All @@ -30,3 +27,11 @@ thiserror = "1.0.57"
version = "0.13.0"
optional = true

[[example]]
name = "bevy-collider"
required-features = ["bevy"]


[[example]]
name = "parry-collider"
required-features = []
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ get the edges of objects in images with transparency

## disclaimer

this existed first as implementation over in a crate called [bevy_collider_gen](<https://github.com/shnewto/bevy_collider_gen>). at the time, that's what it seemed most useful for. this crate represents me starting to wonder whether it's useful for something else, but at the moment it the api is a bit of a nuisance to use.

i'm working through how to make it less of a nuisance, and if I succeed, I'll drop in into [bevy_collider_gen](<https://github.com/shnewto/bevy_collider_gen>).
this existed first as implementation over in a crate called [bevy_collider_gen](<https://github.com/shnewto/bevy_collider_gen>). at the time, that's what it seemed most useful for. this crate represents me starting to wonder whether it's useful for something else.

## how it works

Expand All @@ -23,9 +21,8 @@ after that, we need to put the coordinates in some kind of "drawing order" so wh
crate collects all pixels, in order, that are a distance of 1 from eachother. if there are pixels that have a distance greater than 1
from any pixel in an existing group, that pixel begins a new group.

## todo
## maybe todo?

- examples
- allow input for specifying the pixel value you want to treat as "transparency"

## license
Expand Down
Binary file added assets/car.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 03527c2

Please sign in to comment.