Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit ead04dc

Browse files
committed
make --transition-random select random angles
Right now it is only using angles in th [0..1] interval, which is not random at all!
1 parent 21d6abd commit ead04dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/imgproc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ pub fn make_transition(img: &cli::Img) -> ipc::Transition {
649649
Coord::Percent(fastrand::f32()),
650650
Coord::Percent(fastrand::f32()),
651651
);
652-
angle = fastrand::f64();
652+
angle = fastrand::f64() * 360.0;
653653
match fastrand::u8(0..4) {
654654
0 => ipc::TransitionType::Simple,
655655
1 => ipc::TransitionType::Wipe,

0 commit comments

Comments
 (0)