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

150
Views
Cambiar el color de los píxeles de blanco a transparente en Canvas

Así que tengo esto incrustado en mi sitio ( pronóstico superior ), que copié en un nuevo lienzo ( pronóstico inferior ) con la esperanza de poder modificar los colores en el lienzo de blanco a transparente. Lo necesitaría para ignorar los píxeles blancos dentro de la fila inferior de cuadros pero cambiar el fondo blanco a transparente. Producción

¿Alguna ayuda? Este es el código que tengo hasta ahora:

 <!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
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!