Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::Canvas::WaveformStyle Struct Reference

Draw a waveform using GPU shader (SDF anti-aliased line + fill). More...

#include <canvas.hpp>

Public Attributes

Color line_color = Color::rgba(0.392f, 0.706f, 0.980f)
Color fill_color = Color::rgba(0.392f, 0.706f, 0.980f, 0.157f)
float line_thickness = 1.5f
bool show_fill = true
float fill_center = 0.5f
 0=top, 0.5=center, 1=bottom

Detailed Description

Draw a waveform using GPU shader (SDF anti-aliased line + fill).

Samples are normalized -1 to 1. Default implementation falls back to polyline.

Member Data Documentation

◆ fill_center

float pulp::canvas::Canvas::WaveformStyle::fill_center = 0.5f

0=top, 0.5=center, 1=bottom

◆ fill_color

Color pulp::canvas::Canvas::WaveformStyle::fill_color = Color::rgba(0.392f, 0.706f, 0.980f, 0.157f)

◆ line_color

Color pulp::canvas::Canvas::WaveformStyle::line_color = Color::rgba(0.392f, 0.706f, 0.980f)

◆ line_thickness

float pulp::canvas::Canvas::WaveformStyle::line_thickness = 1.5f

◆ show_fill

bool pulp::canvas::Canvas::WaveformStyle::show_fill = true

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/canvas/include/pulp/canvas/canvas.hpp