Compare commits
2 Commits
971e2a61f6
...
b0fecde639
Author | SHA1 | Date | |
---|---|---|---|
b0fecde639 | |||
1ebe1d0323 |
@ -2,7 +2,7 @@ use anyhow::{anyhow, Result};
|
||||
use psimple::Simple;
|
||||
use pulse::context::{Context, FlagSet as ContextFlagSet};
|
||||
use pulse::mainloop::standard::{IterateResult, Mainloop};
|
||||
use pulse::sample::{Format, Spec};
|
||||
use pulse::sample::Spec;
|
||||
use pulse::stream::Direction;
|
||||
use std::cell::RefCell;
|
||||
use std::ops::Deref;
|
||||
|
@ -133,7 +133,7 @@ fn main() -> Result<()> {
|
||||
|
||||
y = (1f32 + y).log2();
|
||||
|
||||
let mut y = (y - min_y) / (max_y - min_y);
|
||||
let y = (y - min_y) / (max_y - min_y);
|
||||
|
||||
((1f32 - y) * texture_size as f32) as u32
|
||||
};
|
||||
|
3
sphere_movement/.gitignore
vendored
Normal file
3
sphere_movement/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
venv
|
||||
.vscode
|
||||
.ipynb_checkpoints
|
100
sphere_movement/slerp.ipynb
Normal file
100
sphere_movement/slerp.ipynb
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user