Entradas

Mostrando las entradas con la etiqueta dibujar rectangulo javascript

Which FIFA World Cup 2026 Match Should You Watch Again? A Python Data Analysis

Imagen
Which FIFA World Cup 2026 Match Should You Watch Again? After every FIFA World Cup, one question always comes up: Which matches are worth watching again? Instead of answering this question based on personal opinion, I decided to analyze every match from the FIFA World Cup 2026 using Python, Pandas and Matplotlib. The objective was simple: Find the matches with the most goals. Identify the strongest defensive performances. List every game that required extra time. Show every match decided by a penalty shootout. The result is a collection of custom visualizations generated entirely with Python using the FIFA World Cup 2026 dataset. ⚽ Highest Scoring Matches If you enjoy attacking football and goal-filled games, this ranking is the perfect place to start. Using the official match results, I ranked every match by the total number of goals scored by both teams. The visualization highlights the ten highest-scoring matches of the tournament. NOTE : Englan...

Especial Navideño dibujar Árbol de Navidad con Javascript

Imagen
Buen día, bienvenidos a este blog de programación, como ya estamos en época  Navideña , me gustaría compartirles un ejemplo de como  dibujar un Pino y una Corona de Navidad (con imaginación) en un lenguaje que ya vimos previamente que es Javascript . Para esto vamos a utilizar las etiquetas de Canvas que son soportadas en HTML5 y en los siguientes navegadores, Canvas es un termino para decir que es nuestra área de trabajo o nuestro lienzo donde vamos a dibujar, es soportado en los siguientes Browse: https://www.w3schools.com/html/html5_canvas.asp Para dibujar un circulo tenemos la función arc que tiene los siguiente parámetros context. arc(x,y,r,sAngle,eAngle,counterclockwise); coordenada x dentro del canvas  coordenada y dentro del canvas Valor del radio El angulo  inicial El angulo final Para especificar si es dentro o fuera la función  Para dibujar un arbolito es mediante líneas y mover sin despejar el lápiz pa...

🚀 Mantener este blog funcionando requiere tiempo y café. ¡Puedes contribuir con uno aquí!