linewidth

The linewidth parameter controls how thick a line is drawn. It accepts a number (integer), typically in the range of 1 to 5.

  • 1 β†’ Very thin line (default).

  • 2 β†’ Thin but clearer line.

  • 3 β†’ Medium thickness (easy to see).

  • 4 β†’ Thick line (emphasis).

  • 5 β†’ Very thick line (highlighted / strong emphasis).

Example

// Thin dashed red line
band.line("Resistance", 2000, "#FF0000", 2, 1);

// Thick solid green line
band.line("Support", 1000, "#00FF00", 0, 4);
triangle-exclamation

Warning

circle-check

Good Practice

Last updated