Skip to content

ach5910/WebGl-Demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebGl Demos

Demos created while following Math DesLauriers's Advanced Creative Coding with WebGl and Shaders course on FrontendMasters

Install the node_modules:

$ yarn add

If you don't have npx run the commands with ./node_modules/.bin/canvas-sketch

Creating a new file:
$ npx canvas-sketch <file> --new --template=three
Rendering a file
$ npx canvas-sketch <file>

Access http://10.0.0.3:9966/ to view the rendering. The page will hot reload when changes are saved to the file.

Downloading Output

To download, click the rendering within the browser then press cmd + shift + s.

Modify the settings object to change the output dimensions, pixel density, fps and duration.

By default downloads are saved as images.

Video

Install ffmpeg:

$ yarn add @ffmpeg-installer/ffmpeg --global

Run canvas-sketch with a --stream flag.

MP4:
$ npx canvas-sketch <file> --stream
GIF:
$ npx canvas-sketch <file> --stream=gif

About

Demos created while following Math DesLauriers's Advanced Creative Coding with WebGl and Shaders course on FrontendMasters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published