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

#include <canvas.hpp>

Public Attributes

Color fill_color = Color::rgba(0.392f, 1.0f, 0.392f)
Color stroke_color = Color::rgba(0.392f, 1.0f, 0.392f)
float stroke_width = 0
 0 = filled, >0 = stroked
float corner_radius = 0
 For rounded_rect.
float arc_start = 0
 For arc (radians).
float arc_sweep = 4.712f
 For arc (radians, default 270°).
float squircle_power = 4.0f
 For squircle (higher = more rectangular).
float inner_radius = 0.5f
 For ring (fraction of outer radius).
float arm_width = 0.3f
 For cross (fraction of half-size).
float bezier_cx = 0.0f
 For quadratic_bezier: control point X (normalized -1..1).
float bezier_cy = -1.0f
 For quadratic_bezier: control point Y (normalized -1..1).
float feather_sigma = 0.0f
int feather_curve = 0
 0=gaussian, 1=linear
int feather_mode = 0

Member Data Documentation

◆ arc_start

float pulp::canvas::Canvas::SDFStyle::arc_start = 0

For arc (radians).

◆ arc_sweep

float pulp::canvas::Canvas::SDFStyle::arc_sweep = 4.712f

For arc (radians, default 270°).

◆ arm_width

float pulp::canvas::Canvas::SDFStyle::arm_width = 0.3f

For cross (fraction of half-size).

◆ bezier_cx

float pulp::canvas::Canvas::SDFStyle::bezier_cx = 0.0f

For quadratic_bezier: control point X (normalized -1..1).

◆ bezier_cy

float pulp::canvas::Canvas::SDFStyle::bezier_cy = -1.0f

For quadratic_bezier: control point Y (normalized -1..1).

◆ corner_radius

float pulp::canvas::Canvas::SDFStyle::corner_radius = 0

For rounded_rect.

◆ feather_curve

int pulp::canvas::Canvas::SDFStyle::feather_curve = 0

0=gaussian, 1=linear

◆ feather_mode

int pulp::canvas::Canvas::SDFStyle::feather_mode = 0

◆ feather_sigma

float pulp::canvas::Canvas::SDFStyle::feather_sigma = 0.0f

◆ fill_color

Color pulp::canvas::Canvas::SDFStyle::fill_color = Color::rgba(0.392f, 1.0f, 0.392f)

◆ inner_radius

float pulp::canvas::Canvas::SDFStyle::inner_radius = 0.5f

For ring (fraction of outer radius).

◆ squircle_power

float pulp::canvas::Canvas::SDFStyle::squircle_power = 4.0f

For squircle (higher = more rectangular).

◆ stroke_color

Color pulp::canvas::Canvas::SDFStyle::stroke_color = Color::rgba(0.392f, 1.0f, 0.392f)

◆ stroke_width

float pulp::canvas::Canvas::SDFStyle::stroke_width = 0

0 = filled, >0 = stroked


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