diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-07-06 23:04:10 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-08-24 11:10:13 -0400 |
commit | 6ba084db4ba375eacaa1677fd75de318c12170c7 (patch) | |
tree | 9122e889fcc47d8f6ebd71717a8cb35a98ebafdb /src/main.rs | |
parent | 39c0348c9f98b4dd29bd112a0a2a42faa67c92d4 (diff) | |
download | kd-forest-6ba084db4ba375eacaa1677fd75de318c12170c7.tar.xz |
Bump acap to 0.2.0
This requires adapting to the new k-d trees, which are significantly
faster.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index ce54939..ae8c35d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -355,7 +355,10 @@ impl App { } } - fn paint<C: ColorSpace>(&mut self, colors: Vec<Rgb8>) -> AppResult<()> { + fn paint<C: ColorSpace>(&mut self, colors: Vec<Rgb8>) -> AppResult<()> + where + C::Value: PartialOrd<C::Distance>, + { let width = self.width.unwrap(); let height = self.height.unwrap(); let x0 = self.args.x0.unwrap_or(width / 2); |