home / fishbowl_archive / biscript

biscript: 7

This data as json

id active data dateLastModified description name note typeId fbVersion fbName published
7 _binary  const COLORS = { "blue": "rgb(0,0,255)", "red": "rgb(255,0,0)", "green": "rgb(0,255,0)", "colors": ["#673AB7", "#2196F3", "#E91E63", "#F44336", "#009688", "#4CAF50", "#FFC107", "#795548"], "get": function(num) { const full = []; const half = []; for (let i = 0; i < num; i++) { full.push(UTIL.convertHex(this.colors[i%this.colors.length], 100)); half.push(UTIL.convertHex(this.colors[i%this.colors.length], 50)); } return { "fullAlpha": full, "halfAlpha": half }; } }; 2023-01-05 17:28:06.943000 Set of default colors Colors   20 1 fb-colors 0
Powered by Datasette · Queries took 1.512ms