Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libraries/colour.js
Original file line number Diff line number Diff line change
Expand Up @@ -46040,4 +46040,5 @@ const PREBUILT_BORDER_COLOURS = []
PREBUILT_BORDER_COLOURS[999] = colour
}

Colour.cache = PREBUILT_COLOURS
Colour.splash()
//Colour.cache = PREBUILT_COLOURS
12 changes: 6 additions & 6 deletions libraries/habitat-embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion the-one-true-todey-file-of-cellpond.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down