Skip to main content

changeColorMarkup

Sets the fill, stroke, or text color of a markup object.

Syntax

RxCore.changeColorMarkup(markup, val, strokefill)

Parameters

  • markup: object — The markup object to which the color will be applied.
  • val: string — A color specified using HTML color notation (e.g., "#FF0000").
  • strokefill: number — Determines what to color: 0 for fill color, 1 for line color, and 2 for text color.

Returns

  • NA — This method does not return a value.