Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

180
Vistas
Why does setting desynchronized and alpha to false on my canvas change the colors?

I was messing around with the available canvas context flags for my WebGL application, and I noticed that setting desynchronized to true along with alpha to false when performing getContext(), like this:

const canvasContext = canvasElem.getContext("webgl2", { 
  alpha: false,
  desynchronized: true
});

Changes the colors to be exactly as I set them.

That is, if I try to draw with the color #FF0000, it will draw exactly that. It makes sense to me why this would occur with setting alpha to false, because it prevents blending with the page's background (or whatever else is behind the canvas), but setting alpha alone doesn't seem to cause this effect.

Rather, you must have both in order for the canvas colors to not blend with the background of the page. I'm curious why this is.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda