clear color

This commit is contained in:
Kseninia Mikhaylova 2024-09-02 14:30:03 +03:00
parent b9fa61f4c4
commit 319d486ffa
1 changed files with 1 additions and 2 deletions

View File

@ -55,7 +55,7 @@ const loadEnv = async () => {
const hsl_value = { h: 0, s: 0, l: 0 }
new Color(props.clear_color).getHSL(hsl_value);
document.documentElement.style.setProperty('--primary-color', props.clear_color)
document.documentElement.style.setProperty('--primary-color', props.clear_color || PROMOBG)
document.documentElement.style.setProperty('--main-text-color', hsl_value.l < 0.5 ? '#fff' : '#000')
if (props.clear_color_to) {
@ -79,7 +79,6 @@ const loadEnv = async () => {
texture.needsUpdate = true
scene.value.background = texture
texture.dispose()
console.log(canvas.toDataURL())
}
}