YoVDO

How to Code - Sine Waves

Offered By: Chris Courses via YouTube

Tags

Javascript Courses Creative Coding Courses Visual Effects Courses

Course Description

Overview

Learn to create dynamic sine waves using HTML5 Canvas in this 30-minute tutorial. Master drawing lines, controlling y-coordinates, implementing Math.sin() for wave generation, and adjusting amplitude and wavelength. Utilize dat.gui for fine-tuning wave properties, animate frequency with requestAnimationFrame, and add visual enhancements like fade effects and color. Explore techniques for clearing backgrounds, adding dynamic properties, and experimenting with various effects. Follow along step-by-step to build an interactive sine wave animation, perfect for both beginners and intermediate developers looking to enhance their Canvas skills.

Syllabus

01. Draw a line
02. Ensure line has individual points to control y coordinates
03. Alter each point with Math.sin
04. Add amplitude to increase wave height
05. Add wavelength to elongate waves
06. Import dat.gui to fine-tune wave properties
07. Animate frequency with requestAnimationFrame
08. Clear background
09. Add fade effect
10. Add colors to wave
11. Add colors to background
12. Make properties dynamic with animation and Math.sin
13. Experiment!


Taught by

Chris Courses

Related Courses

Code Yourself! An Introduction to Programming
University of Edinburgh via Coursera
¡A Programar! Una introducción a la programación
University of Edinburgh via Coursera
Visual Effects for Guerrilla Filmmakers
Norwich University of the Arts via FutureLearn
Unreal Engine Interactive 3D: Sequencer-Cinematography, Interfaces, Visual Effects, Pipelines, and Production
Rochester Institute of Technology via edX
Create a Space Shooter Game with Scratch Studio
Coursera Project Network via Coursera