RibbonSpec constructor

RibbonSpec({
  1. required List<Color> gradient,
  2. double baseY = 0.2,
  3. double thickness = 1.0,
  4. double speedFactor = 1.0,
  5. double elevation = 6.0,
  6. double opacity = 0.75,
})

Implementation

RibbonSpec({
  required this.gradient,
  this.baseY = 0.2,         // normalized 0..1 of height
  this.thickness = 1.0,     // scales amplitude
  this.speedFactor = 1.0,   // local speed multiplier
  this.elevation = 6.0,     // dp (shadow + tint intensity)
  this.opacity = 0.75,      // translucency
});