Base Color #3257
-
Hi,I have a problem.I try this code https://modelviewer.dev/examples/scenegraph/#changeColor and work it.Thank you.But I want to use different and specific color.I don't find color code. what are the color codes used here? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi @begumbeyza, thanks for reaching out. Have you tried changing the |
Beta Was this translation helpful? Give feedback.
-
Thanks for answered.Yes I change but I want to use specific color.For example I want to use hex: AA3000 but I didn't convert for model-viewer.How should I do? |
Beta Was this translation helpful? Give feedback.
-
We only support RGBA, So you would need to convert your color to RGBA. e.g. in your case try something like |
Beta Was this translation helpful? Give feedback.
-
I understand now.I ask last quesiton.I research rgba and every color convert don't 0 to 1.How do I do for true convert? |
Beta Was this translation helpful? Give feedback.
We only support RGBA,
setBaseColorFactor(rgba: RGBA)
. More info hereSo you would need to convert your color to RGBA. e.g. in your case try something like
data-color="0.69,0.18,0,1"