diff --git a/libraries/colour.js b/libraries/colour.js index 7bd4546..3e7a263 100644 --- a/libraries/colour.js +++ b/libraries/colour.js @@ -46040,4 +46040,5 @@ const PREBUILT_BORDER_COLOURS = [] PREBUILT_BORDER_COLOURS[999] = colour } -Colour.cache = PREBUILT_COLOURS \ No newline at end of file +Colour.splash() +//Colour.cache = PREBUILT_COLOURS \ No newline at end of file diff --git a/libraries/habitat-embed.js b/libraries/habitat-embed.js index 3625512..a4bbedc 100644 --- a/libraries/habitat-embed.js +++ b/libraries/habitat-embed.js @@ -139,11 +139,11 @@ const Habitat = {} const greenId = parseInt(string[1]) const blueId = parseInt(string[2]) - const red = reds[redId] - const green = greens[greenId] - const blue = blues[blueId] + const red = Math.floor((reds[redId] / 255) * 360 + 200) + const green = Math.floor(greens[greenId] / 255 * 100) + const blue = Math.floor(blues[blueId] / 255 * 100) - const rgb = `rgb(${red}, ${green}, ${blue})` + const rgb = `hsl(${red}, ${green}%, ${blue}%)` const colour = Habitat.Colour.make(rgb) colour.splash = style @@ -334,8 +334,8 @@ const Habitat = {} Habitat.Colour.Void = Habitat.Colour.make("rgb(6, 7, 10)") Habitat.Colour.Black = Habitat.Colour.make(000) - Habitat.Colour.Grey = Habitat.Colour.make(112) - Habitat.Colour.Silver = Habitat.Colour.make(556) + Habitat.Colour.Grey = Habitat.Colour.make(11) + Habitat.Colour.Silver = Habitat.Colour.make(956) Habitat.Colour.White = Habitat.Colour.make(888) Habitat.Colour.Green = Habitat.Colour.make(293) diff --git a/the-one-true-todey-file-of-cellpond.js b/the-one-true-todey-file-of-cellpond.js index 06d72c3..f127300 100644 --- a/the-one-true-todey-file-of-cellpond.js +++ b/the-one-true-todey-file-of-cellpond.js @@ -2365,7 +2365,7 @@ on.load(() => { const choices = new Set() for (const augendChoice of augendChoices) { for (const addendChoice of addendChoices) { - const choice = isHue? clamp(augendChoice + addendChoice*multiplier, 0, 9) : clamp(augendChoice + addendChoice*multiplier, 0, 9) + const choice = isHue? wrap(augendChoice + addendChoice*multiplier, 0, 9) : clamp(augendChoice + addendChoice*multiplier, 0, 9) choices.add(choice) } }