Draws a square containing a customizable rainbow gradient.
To install, you can use your favorite package manager, for example yarn
or npm
. We recommend npm.
npm install square-keemon
<Square [size] [direction] [smooth]>
-
size
: How long each side of this Square will be. -
direction
: In which direction(s) the rainbow gradient will flow. Usable letters:H: Horizontal V: Vertical D: Diagonal L: Left to Right T: Top to Bottom R: Right to Left B: Bottom to Top
- No spacing nor separation is required.
- It is not recommended to put
L
andR
in the same direction string, norT
andB
. -
H
&V
do not work withsmooth
.
-
smooth
: Whether the rainbow gradient will be rendered with parallel or perpendicular separators.