Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Code Art: Learn Creative Coding to Generate Visuals with JS
Rating: 4.4 out of 5(263 ratings)
3,958 students

Code Art: Learn Creative Coding to Generate Visuals with JS

Learn the fundamentals of generative art and discover how to develop, draw, and animate visuals with HTML and Javascript
Created byYeti Learn
Last updated 4/2023
English
English [Auto],

What you'll learn

  • Code Art, Creative Coding, Generative Art
  • Creating Visuals with Coding
  • Learn to draw with code
  • Javascript Animations
  • Html5 Canvas and CTX
  • Particle Effect with Vanilla JS
  • Canvas-sketch library
  • ThreeJS
  • Making Audio Visualizers

Course content

7 sections78 lectures5h 1m total length
  • Before Start3:10

    Learn essential tools for this creative coding course, from editor/ide options to command-line basics on macOS and Windows, including creating folders and files with terminal, touch, and echo.

  • Create Project Files1:41

    Create a new project folder, add index.html and index.js, use the HTML5 template, and insert a canvas element in the body to draw with JavaScript in the browser.

  • HTML5 Canvas2:25

    Use HTML canvas with JavaScript to start drawing. Set up the canvas tag, define its width and height, obtain a 2d rendering context, and draw rectangles and lines.

  • Create Canvas and CTX3:14

    Create and access a canvas by id using getElementById, obtain its 2d context with getContext, and prepare for drawing shapes with arc and rect.

  • Draw a Rectangle4:12

    Learn to draw a rectangle on a canvas by calling beginPath, using x, y, width, height, and fill or stroke, then size the canvas with innerWidth and innerHeight and css.

  • What is Live Server?2:00

    Install the live server extension to launch a local development site that auto reloads on save, supports multiple projects on different ports, and improves previews over the file protocol.

  • Event Listener in JS2:15

    Discover how JavaScript event listeners respond to clicks or page loads by attaching to DOM elements, specifying the event type and handler, with options for once or capturing or bubbling.

  • Event Listeners Practice2:04

    Learn to implement a canvas event listener, log click coordinates, draw rectangles at x and y positions, and switch brush types, including mass move for a procreate-like drawing experience.

  • Arc3:09

    Explore the arc function to draw arcs by setting x, y, radius, start angle, end angle, and an optional rotation; convert degrees to radians for complete circles.

  • Reminder (Video Speed)0:13
  • Generate Atoms10:48

    Create an atom class to generate small circles with random radius and speed, update their positions, and draw them in an animation loop. Click to spawn atoms at a point.

  • Destroy and Blur10:09

    Develop a shrink-and-destroy particle system by updating speed and size, deleting small atoms with splice, and using context save/restore and alpha background to produce a trailing blue effect.

  • Create a Nice Sky-Stars Effect4:36

    Generate a sky stars effect by auto creating atoms with random positions in space and animating them via a requestAnimationFrame loop in JavaScript.

  • Custom Movements of Particles (Parabolic)7:25

    Place particles at specific points with a Point object and center them. Use cosine-driven x motion and a parabola y = 2.6 x to shape trajectories.

  • Sierpiński Triangle Challenge0:16

Requirements

  • Basic Math Skills
  • Code Editor
  • Browser
  • Programming experience is an advantage

Description

Why code art?

  • Because once you learn creating art with coding, there is actually no limit. You don’t have the boundaries of visual effect programs!

  • Creative algorithms are data driven can work real time and interactive.

  • It’s combination of technical side and design.

  • There are many languages and ways of creative coding.

  • We’ll use html and javascript in this course, because nowadays javascript is everywhere.

  • You’ll have a chance to make your project interactive with other technologies with JS.

  • We’ll create particles that will listen the music and behave differently.

  • After learning this technique you can use audio input in any effect you want!

  • You’ll be shocked when you see how easy it is to make these animations.

  • If you already know a programming language that’s a big advantage.

Where can I use these visuals?

It’s up to you! You can create your own NFT collection. Upload effects to your website, put them in your portfolio, or just to make them for fun!


Why this course?

We as Yeti team, are working to create professional online education lectures. We are trying to keep it as simple as possible. You'll find the best practices for creative coding.

This course is created with both Windows and Mac users, meaning you can get full benefit whether you are a windows or mac user.

All students have access to the Q&A forums where our Instructors, Teaching Assistants and Community are ready to help answer your questions and cheer on your success.


Who this course is for:

  • Programmers - Developers

  • Designers

  • Freelancers

  • Animators

  • Graphic Designers

  • Who feels comfortable with another programming language and want to learn creative coding

  • Everyone interested in animations, visuals, algorithms, and art


Who this course is for:

  • This course is for both developers and designers who want to draw with code.