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

232
Vistas
Changing Opacity of Text and Text Bacground separately in Fabric JS

I am adding text to the Canvas using Fabric JS.

let text = new fabric.IText('My Text', {
    fill: 'black',
    fontSize: 40,
    textBackgroundColor: 'yellow'
})

canvas.add(text);

If I change Opacity of text like this:

 text.set({'opacity': 0});

It also changes the Opacity of Text Background which I do not want. I want to change the Opacity of Text without changing it's background.

Actually, I want to punch out Text or you can say set text opacity to '0' with out changing Backgound of text.

Like This:

enter image description here

Is there any way I can do that?

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