Add color function documentation

This commit is contained in:
Alexandre G.-Raymond 2023-11-05 16:23:36 +01:00
parent 0d06840a1b
commit f045fb44de
No known key found for this signature in database
GPG Key ID: 97BA9F51695B5C7B

View File

@ -2191,6 +2191,9 @@ export const duration = register('duration', function (value, pat) {
/**
* Sets the color of the hap in visualizations like pianoroll or highlighting.
* @name color
* @synonyms colour
* @param {string} color Hexadecimal or CSS color name
*/
// TODO: move this to controls https://github.com/tidalcycles/strudel/issues/288
export const { color, colour } = register(['color', 'colour'], function (color, pat) {