Skip to content

Commit 5195f2a

Browse files
committed
fix: increase ROWS to 180 for finer lightness axis sampling in renderSlice function
1 parent d7b1eb5 commit 5195f2a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/demo/slice.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export function renderSlice(host: HTMLElement, input: SliceInput): void {
4141

4242
// The shell itself, filled with real gamut colors: each lightness column is a
4343
// vertical gradient from neutral (chroma 0, bottom) up to the boundary color.
44-
const ROWS = 56;
44+
// The column is a single lightness, so the count sets how finely the *lightness*
45+
// (horizontal) axis is sampled — high enough that the steps read as continuous.
46+
const ROWS = 180;
4547
let defs = '';
4648
let fill = '';
4749
for (let i = 0; i < ROWS; i++) {

0 commit comments

Comments
 (0)