View all examples

Color palettes

Spectastiq supports four different color palettes for rendering the spectrogram: plasma, viridis, inferno and greyscale.

Plasma

Plasma is a perceptually uniform color palette in the ranging from blue through pink to orange/yellow. It is also the default scheme if you don't specify one.

<script src="/path/to/spectastiq.js"></script>
<spectastiq-viewer
  src="/path/to/audio/my-audio-file.mp3"
  color-scheme="plasma"
>
</spectastiq-viewer>

Viridis

Viridis is a perceptually uniform color palette in the yellow, green and blue range.

<script src="/path/to/spectastiq.js"></script>
<spectastiq-viewer
  src="/path/to/audio/my-audio-file.mp3"
  color-scheme="viridis"
>
</spectastiq-viewer>

Inferno

Inferno is a perceptually uniform color palette that ranges from deep black/blue through a bright pink/orange to yellow.

<script src="/path/to/spectastiq.js"></script>
<spectastiq-viewer
  src="/path/to/audio/my-audio-file.mp3"
  color-scheme="inferno"
>
</spectastiq-viewer>

Greyscale

A simple greyscale color scheme, popular for bird spectrograms that need to appear in print.

<script src="/path/to/spectastiq.js"></script>
<spectastiq-viewer
  src="/path/to/audio/my-audio-file.mp3"
  color-scheme="grey"
>
</spectastiq-viewer>

View all examples