package io.github.jjsimas.chart2d;

import java.awt.Color;
import java.util.Objects;

public record WarningBand(double low, double high, Color fill) {

  public WarningBand {
    if (high < low) {
      throw new IllegalArgumentException("high must be >= low");
    }
    fill = Objects.requireNonNull(fill, "fill");
  }
}
