Struct waveform::misc::WaveformConfig [] [src]

pub struct WaveformConfig {
    pub amp_min: f64,
    pub amp_max: f64,
    // some fields omitted
}

Configurations for image generators.

It contains the following information:

  • Range of the amplitudes to be rendered
  • Foreground and background Colors to be used

Fields

Methods

impl WaveformConfig
[src]

[src]

The constructor.

Arguments

  • amp_min - Minimum value of amplitude to be rendered
  • amp_max - Maximum value of amplitude to be rendered
  • foreground - Foreground Color of the image, format must be consistent with background.
  • background - Background Color of the image, format must be consistent with foreground.

[src]

[src]

[src]

Sets Colors.

Arguments

  • foreground - Foreground Color of the image, format must be consistent with background.
  • background - Background Color of the image, format must be consistent with foreground.

Trait Implementations

impl Copy for WaveformConfig
[src]

impl Clone for WaveformConfig
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for WaveformConfig
[src]

[src]

Returns the "default value" for a type. Read more