Skip to content
This is the development version of the documentation. It may change before the next release. See 0.6.x for the latest release.

uniform

src

uniform gives the same phase and amplitude to all transducers.

uniform(emission, &mut dst);
Parameter Type Description
emission Emission Phase and amplitude set for all transducers
dst &mut [[Emission; _]] Output buffer
use autd3_rs::geometry::{Autd3, Geometry};
use autd3_rs::value::{Emission, Intensity, Phase};
use autd3_rs_pattern::uniform;
let geometry = Geometry::new(vec![Autd3::default()]);
let mut dst = geometry.pattern_buffer();
uniform(
Emission {
phase: Phase::ZERO,
intensity: Intensity::MAX,
},
&mut dst,
);