colourOfPairfunction
The colour of a pair in a set, round and round.
Import it
import { colourOfPair } from "@johnmorrisdotca/tsunagi/draw";
Definition
function colourOfPair(set: readonly TsunagiColour[], pair: number): TsunagiColour
Parameters
| Name | Type | Description |
|---|---|---|
set | readonly TsunagiColour[] | The native level set or palette specified by the signature. |
pair | number | The zero-based pair index. |
Returns
TsunagiColour
The colour of a pair in a set, round and round.
Examples
import { colourOfPair, tsunagiColourSet } from "@johnmorrisdotca/tsunagi/draw";
console.log(colourOfPair(tsunagiColourSet("marble"),0));[ 24, 100, 44 ]What it prints (run when this page was built)