clear color
This commit is contained in:
parent
b9fa61f4c4
commit
319d486ffa
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue