Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
I got a different color about Three.js

Enter image description here

Enter image description here

When I used a hexadecimal color into a mesh, just like "#426158", I got a color. Then when I set a color object, like new Three.Color("#426158") into a mesh, I got a different color. How can I fix this?

First case:

export function NormalMesh() {
    let color = new THREE.Color("#426158")
    return <>
        <mesh position={[0,1,0]}>
            <boxGeometry/>
            <meshBasicMaterial color={color} />
        </mesh>

    </>
}

Second case:

export function NormalMesh() {
    let color = new THREE.Color("#426158")
    return <>
        <mesh position={[0,1,0]}>
            <boxGeometry/>
            <meshBasicMaterial color={"#426158"} />
        </mesh>

    </>
}

I got different result.

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!