Skip to content
Image & Canvas newConicGradient

$newConicGradient — Creates a conic gradient around a point, to use by name as the style of $fill or $drawRect.

Creates a conic gradient around a point, to use by name as the style of $fill or $drawRect.

Syntax

$newConicGradient[name;start;x;y;(stops)]

Parameters

  • name (String, required) — Gradient name
  • start (Number, required) — Start angle in radians
  • x (Number, required) — Center X
  • y (Number, required) — Center Y
  • stops (String, optional) — Color stops: nested $addColorStop[;offset;color] calls

Return Value

  • None.

Usage

$newConicGradient[name;start;x;y;stops] → result

Example

$sendMessage[$newConicGradient[name;start;x;y;stops]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.