Skip to content

Commit

Permalink
"Auto commit number 32"
Browse files Browse the repository at this point in the history
  • Loading branch information
lat-murmeldjur committed Mar 25, 2024
1 parent ae063a3 commit e7c2e0e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion chronicl.dt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
31
32
2 changes: 1 addition & 1 deletion featuring.dt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
31
32
1 change: 1 addition & 0 deletions ohio.note
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ Year::2024::|::Month::03::|::Day::22::|::Hour::16::|::Minute::32::|::Second::41:
Year::2024::|::Month::03::|::Day::24::|::Hour::19::|::Minute::16::|::Second::53::
Year::2024::|::Month::03::|::Day::24::|::Hour::19::|::Minute::34::|::Second::50::
Year::2024::|::Month::03::|::Day::25::|::Hour::18::|::Minute::23::|::Second::03::
Year::2024::|::Month::03::|::Day::25::|::Hour::18::|::Minute::28::|::Second::03::
4 changes: 2 additions & 2 deletions src/anomaly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub fn e(position: [f32; 3], clock: bool) -> Anomaly {
)
}

pub fn q(position: [f32; 3], clock: bool, charge: bool, color: u8, flavor: u8) {
pub fn q(position: [f32; 3], clock: bool, charge: bool, color: u8, flavor: u8) -> Anomaly {
let sp = if clock { 0.5 } else { -0.5 };
let ch = if charge { 2.0 / 3.0 } else { -1.0 / 3.0 };

Expand All @@ -156,7 +156,7 @@ pub fn q(position: [f32; 3], clock: bool, charge: bool, color: u8, flavor: u8) {
Value: (color % 6) as f64,
},
],
);
)
}

pub fn particular(coordinates: Vec<[f32; 3]>) -> Vec<[f32; 3]> {
Expand Down
14 changes: 12 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mod magma_ocean;
use magma_ocean::{magma, petrify, Stone};

mod anomaly;
use anomaly::{add_particle_by, e, view, Anomaly};
use anomaly::{add_particle_by, e, q, view, Anomaly};

mod moving_around;
use moving_around::{
Expand Down Expand Up @@ -127,10 +127,20 @@ fn main() {
Force: vec![],
};

let k = 12;
let k = 8;

for i in 0..k {
add_particle_by(&mut anom, e(gen_f32_3(0.0, 69.0, &mut rng), true));
add_particle_by(
&mut anom,
q(
gen_f32_3(0.0, 69.0, &mut rng),
true,
true,
rng.gen_range(0..3),
rng.gen_range(0..1),
),
);
}

let ocl = oclock().cos();
Expand Down

0 comments on commit e7c2e0e

Please sign in to comment.