Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| /*! | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2016 by Blake Bowen (http://codepen.io/osublake/pen/OyPGEo) | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
| #!/bin/bash | |
| fn="$1" | |
| of=${fn%.*}.jpg | |
| lf=`ffprobe -show_streams "$fn" 2> /dev/null | awk -F= '/^nb_frames/ { print $2-1 }'` | |
| rm -f "$of" | |
| ffmpeg -i "$fn" -vf "select='eq(n,$lf)'" -vframes 1 "$of" 2> /dev/null |
| $base-font-size: 16px; | |
| $base-line-height: 1.5; | |
| // this value may vary for each font | |
| // unitless value relative to 1em | |
| $cap-height: 0.68; | |
| @mixin baseline($font-size, $scale: 2) { |
| render | |
| for each particle | |
| x, y = particle.position | |
| color = sample( colorMap, x, y ) | |
| noise = sample( noiseMap, x, y ) | |
| angle = noise * PI * 2 | |
| particle.velocity.add( cos(angle), sin(angle) ) |
| /* | |
| ----------------------------------- | |
| Emoji - natural display for the web | |
| ----------------------------------- | |
| These font face definitions allows to display emoji glyphs intermingled with | |
| arbitrary characters outside emoji unicode blocks. | |
| Usage |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |