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

154
Vistas
Change pixel color from white to transparent in Canvas

So i have this embed in my site (top forecast), which i copied onto a new canvas (bottom forecast) in hopes i can modify the colors in the canvas from white to transparent. I would need it to ignore the white pixels within bottom row of boxes but change the white background to transparent. Output

Any help? This is the code that i have so far:

<!DOCTYPE html>

<html lang="eng">


<head>
<meta charset="UTF-8">
<meta nameset="viewport" content="with=device-width, initial-scale=1.0">
<title>ClearOutside</title>

<style type="text/css">
    body {
        background-color: transparent;

        -ms-zoom: 0.5;
        -moz-transform: scale(0.5);
        -moz-transform-origin: 0 0;
        -o-transform: scale(0.5);
        -o-transform-origin: 0 0;
        -webkit-transform: scale(0.5);
        -webkit-transform-origin: 0 0;
    }
</style>

</head>

<body style="background-color:blue">
<a href="https://clearoutside.com/forecast/37.61/15.10">
    <img id="forecast" src="https://clearoutside.com/forecast_image_small/37.61/15.10/forecast.png" /></a>
<canvas id="myCanvas" width="505" height="41">

    <script>
        document.getElementById("forecast").onload = function() {
            var c = document.getElementById("myCanvas");
            var ctx = c.getContext("2d");
            var img = document.getElementById("forecast");
            ctx.drawImage(img, 0, 0);
        };
    </script>

</body>

</html>
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