Cleaning the codebase

This commit is contained in:
2025-09-29 15:19:11 +02:00
parent 623082ce3b
commit 709ba3a32a
63 changed files with 1479 additions and 4207 deletions

View File

@ -28,12 +28,12 @@ function generateBandLayer(canvasWidth: number, canvasHeight: number): BandLayer
const x = i * sectionWidth
const yValue = Math.random() // 0.0 to 1.0
// Convert y value where 0.0 is bottom and 1.0 is top
const y = canvasHeight - (yValue * canvasHeight)
const y = canvasHeight - yValue * canvasHeight
bands.push({
x,
width: sectionWidth,
y
y,
})
}
}
@ -41,7 +41,7 @@ function generateBandLayer(canvasWidth: number, canvasHeight: number): BandLayer
return {
divisions,
bands,
opacity: 0.8 // Slight transparency for superimposition
opacity: 0.8, // Slight transparency for superimposition
}
}
@ -97,13 +97,13 @@ export function generateBandsImages(count: number, size: number): GeneratedImage
bands: layer.bands.map(band => ({
x: band.x,
width: band.width,
y: band.y
y: band.y,
})),
opacity: layer.opacity
opacity: layer.opacity,
})),
strokeHeight,
size
}
size,
},
}
images.push(image)
@ -113,4 +113,4 @@ export function generateBandsImages(count: number, size: number): GeneratedImage
}
return images
}
}