Destacado
Shapes And Color
Animation And Variables

No alt text
Dibujando Líneas
Dibuja con el ratón.

No alt text
Animación con Eventos
Pausar y reanudar la animación.

No alt text
Movimiento en Dispositivo Móvil
Animar basado en el movimiento del dispositivo.

No alt text
Condiciones
Utiliza declaraciones if y else para tomar decisiones mientras se ejecuta tu sketch.
Imported Media

No alt text
Palabras
Cargar fuentes y dibujar texto.

No alt text
Copiar Datos de Imagen
Pintar desde un archivo de imagen en el lienzo.

No alt text
Máscara Alfa
Usa una imagen para recortar una sección de otra imagen.

No alt text
Transparencia de Imagen
Hacer una imagen transparente en el lienzo.

No alt text
Reproductor de Audio
Crea un reproductor para un archivo de audio.

No alt text
Reproductor de Video
Crea un reproductor para un archivo de video.

No alt text
Video en el Lienzo
Mostrar y estilizar un video en el lienzo.

No alt text
Captura de Video
Mostrar un video en directo desde una cámara.
Input Elements
Transformation
Calculating Values
Repetition

No alt text
Interpolación de color
Difumina entre dos colores.

No alt text
Rueda de Color
Crear una visualización del espectro de colores.

No alt text
Bezier
Dibuja un conjunto de curvas.

No alt text
Caleidoscopio
Dibuja diseños reflejados con el mouse.

No alt text
Noise
Genera texturas naturalistas utilizando ruido Perlin.

No alt text
Árbol recursivo
Draw a tree using a function that calls itself.
Listing Data with Arrays
Angles And Motion
Games
3D

No alt text
Geometrías
Dibujar formas 3D, incluido un modelo personalizado.

No alt text
Geometría Personalizada
Generar una forma 3D programáticamente.

No alt text
Materials
Cambiar el color, la textura, y la forma en que responden a la luz los objetos 3D.

No alt text
Orbit Control
Controlar la cámara con el ratón.
Advanced Canvas Rendering

No alt text
Crear Gráficos
Dibujar imágenes fuera de pantalla.

No alt text
Múltiples Lienzos
Usa el Modo de Instancia para colocar múltiples lienzos en la página.

No alt text
Shader como Textura (GLSL)
Genera una textura para una forma 3D usando un shader.

No alt text
Shader como Textura (p5.strands)
Genera una textura para una forma 3D usando un shader.
Classes And Objects

No alt text
Copos de Nieve
Animar la caída de nieve.

No alt text
Agitar y Rebotar la Pelota
Animar el movimiento de la pelota basado en el movimiento del dispositivo móvil.

No alt text
Partículas Conectadas
Dibuja círculos y líneas conectadas usando el ratón.

No alt text
Agrupación
Simula el comportamiento de agrupamiento de aves.
Loading And Saving Data

No alt text
Almacenamiento Local
Guarda datos del navegador en el dispositivo.

No alt text
JSON
Almacena datos en el formato de notación de objetos JavaScript.

No alt text
Tabla
Almacena datos como valores separados por comas.

Three random images loaded and displayed on a canvas after using async/await and Promise.all.
Load Multiple Images with Promise.all
Load multiple files at the same time before drawing on canvas.
Math And Physics

No alt text
Reflexión No Ortogonal
Simula una pelota rebotando en una superficie inclinada.

No alt text
Cuerpo Blando
Simula la física de un cuerpo blando acelerando hacia el ratón.

No alt text
Fuerzas
Simula fuerzas en múltiples cuerpos mientras se mueven a través de un líquido.

No alt text
Partículas de Humo
Simula humo con un sistema de partículas.

No alt text
Juego de la Vida
Recrea el autómata celular de John Conway.

No alt text
Conjunto de Mandelbrot
Visualiza un conjunto matemático que produce estructuras fractales.
Shaders

No alt text
Filtro de sombreado (p5.strands)
Manipula imágenes con un filtro de sombreador (shader).

No alt text
Filtro de sombreado (GLSL)
Manipula imágenes con un filtro de sombreador (shader).

No alt text
Ajusta Posiciones con un Sombreador (p5.strands)
Usar un sombreador para ajustar los vértices de una forma.

No alt text
Ajusta Posiciones con un Sombreador (GLSL)
Usar un sombreador para ajustar los vértices de una forma.

No alt text
Desenfoque del búfer de trama (framebuffer)
Simular la profundidad de campo de una cámara.

A gradient from red to blue.
Gradient (p5.strands)
Draw a radial gradient between two points in p5.strands.

A dithered gradient from red to blue.
Dithered Gradient (p5.strands)
Draw a dithered radial gradient between two points in p5.strands.

A row of five orange spheres. The closest and farthest spheres from the camera appear blurred.
Depth Blur (p5.strands)
Simulate a camera's depth of field, with a shader written in p5.strands.

A city scene blurred around the edges of the frame
Variable Blur (p5.strands)
Create a blur shader with a different amount of blur at different parts of the canvas.
Sound

An image of sound waves rendered in p5.js.
Making a Beep
Creating tones with an Oscillator.

An image of sound waves rendered in p5.js.
Filtering Sound
Simulate the sound of waves and wind with white noise.

An image of sound waves rendered in p5.js.
Playing Melodies
Create melodic music using an array of pitch values.

An image of sound waves rendered in p5.js.
Echo Synth
Trigger a short sound with an echo effect.

An image of sound waves rendered in p5.js.
Sample Playback
Load a soundfile and change its properties.

An image of sound waves rendered in p5.js.
Measuring Amplitude (Visualization)
Analyze the amplitude of sound with p5.Amplitude.

An image of sound waves rendered in p5.js.
Visualizing Sound
Spectral analysis for audio-responsive animations.

An image of sound waves rendered in p5.js.
Connecting to ToneJS
Working with AudioContexts and cross-library synthesis.