Search the Community
Showing results for tags 'color string vs color3 babylon object'.
Found 1 result
babylonjs brickProceduralTexture Color3 vs color string
dhiru posted a topic in Questions & AnswersHi, I have created labels that shows my objects on the top of the screen; however unfortunately the objects use brickProceduralTexture which take brick color as Babylon.Color3 woodTexture.brickColor = new BABYLON.Color3(rColor / 255, gColor / 255, bColor / 255); however I want to match that with the background color of my BABYLON.GUI.Rectangle; which takes the background as a Color; to avoid confusion I wanted to match the colors. var label = new BABYLON.GUI.Rectangle("label for scorecard"); label.background = "black"; I am sure there is something simple I am missing -- I tried reading the documentation and also passing different colors but could not get it to work. Please advise.