Function cssLinearGradient

Returns a CSS linear-gradient with stops corresponding to the given list of colours.

element.style.background = Colour.cssLinearGradient(['red','green','blue']);
  • Parameters

    Returns string