M0.9–M0.10: egui frontend (AE-style panels, viewer, timeline, effect controls, dialogs), desktop app with control channel, host wiring; cargo fmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e2ba01a11f
commit
3a59a8470d
@@ -37,11 +37,7 @@ impl Image {
|
||||
}
|
||||
#[inline]
|
||||
pub fn get(&self, x: i64, y: i64) -> Px {
|
||||
if x < 0 || y < 0 || x >= self.width as i64 || y >= self.height as i64 {
|
||||
[0.0; 4]
|
||||
} else {
|
||||
self.data[y as usize * self.width as usize + x as usize]
|
||||
}
|
||||
if x < 0 || y < 0 || x >= self.width as i64 || y >= self.height as i64 { [0.0; 4] } else { self.data[y as usize * self.width as usize + x as usize] }
|
||||
}
|
||||
#[inline]
|
||||
pub fn get_clamped(&self, x: i64, y: i64) -> Px {
|
||||
@@ -113,12 +109,7 @@ impl Image {
|
||||
let w = |t: f64| -> [f32; 4] {
|
||||
let t2 = t * t;
|
||||
let t3 = t2 * t;
|
||||
[
|
||||
(-0.5 * t3 + t2 - 0.5 * t) as f32,
|
||||
(1.5 * t3 - 2.5 * t2 + 1.0) as f32,
|
||||
(-1.5 * t3 + 2.0 * t2 + 0.5 * t) as f32,
|
||||
(0.5 * t3 - 0.5 * t2) as f32,
|
||||
]
|
||||
[(-0.5 * t3 + t2 - 0.5 * t) as f32, (1.5 * t3 - 2.5 * t2 + 1.0) as f32, (-1.5 * t3 + 2.0 * t2 + 0.5 * t) as f32, (0.5 * t3 - 0.5 * t2) as f32]
|
||||
};
|
||||
let wx = w(tx);
|
||||
let wy = w(ty);
|
||||
|
||||
Reference in New Issue
Block a user