- ARM 64 (aarch64)
- gcc 7.3
- cuda 10
- cudnn 7
- v1.12.0
function w3-sbs() { | |
ffmpeg -i $1 -filter_complex "[0:0][0:2] hstack=inputs=2 [out]" -aspect 1.7777 -vcodec libx264 -x264opts frame-packing=3 -map [out] -map 0:1 "$1.mp4" | |
} | |
function w3-lr() { | |
ffmpeg -i $1 -c:v libx264 -crf 19 -preset slow -an -map 0:0 "$1_L.mp4" -crf 19 -preset slow -map 0:2 -map 0:1 "$1_R.mp4" | |
} |
// Hyperboloc functions by toneburst from | |
// https://machinesdontcare.wordpress.com/2008/03/10/glsl-cosh-sinh-tanh/ | |
// These are missing in GLSL 1.10 and 1.20, uncomment if you need them | |
/* | |
/// COSH Function (Hyperbolic Cosine) | |
float cosh(float val) | |
{ | |
float tmp = exp(val); | |
float cosH = (tmp + 1.0 / tmp) / 2.0; |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
licensed with CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0 | |
Nick Fox-Gieg / @n1ckfg / fox-gieg.com | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
await loadScript("https://unpkg.com/[email protected]/latk.js") | |
p = new P5({mode: 'WEBGL'}) // loads p5js library, comment this line after using it once | |
p.hide() // hide p5js canvas. | |
currentFrame = 0 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
background: black; | |
} | |
</style> | |
<script src="https://unpkg.com/[email protected]/lib/p5.min.js"></script> |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
licensed with CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0 | |
Nick Fox-Gieg / @n1ckfg / fox-gieg.com | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
p = new P5({width: 500, height: 500, mode: 'WEBGL'}) // loads p5js library, comment this line after using it once | |
p.hide() // hide p5js canvas. | |
polylines = [] |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
licensed with CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0 | |
Nick Fox-Gieg / @n1ckfg / fox-gieg.com | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
p = new P5({mode: 'WEBGL'}) // loads p5js library, comment this line after using it once | |
p.hide() // hide p5js canvas. | |
rot = 0 | |
rotDelta = 0 |
#!/bin/sh | |
# https://github.com/greymechanic/loopVideo | |
# clear terminal text, set background to black, and hide the cursor | |
setterm -cursor off | |
setterm -term linux -background black | |
setterm -term linux clear | |
# this is the path to the directory containing your videos | |
VIDEOPATH="/home/pi/Videos" |
import numpy as np | |
def perspective_fov(fov, aspect_ratio, near_plane, far_plane): | |
num = 1.0 / np.tan(fov / 2.0) | |
num9 = num / aspect_ratio | |
return np.array([ | |
[num9, 0.0, 0.0, 0.0], | |
[0.0, num, 0.0, 0.0], | |
[0.0, 0.0, far_plane / (near_plane - far_plane), -1.0], | |
[0.0, 0.0, (near_plane * far_plane) / (near_plane - far_plane), 0.0] |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
licensed with CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0 | |
Nick Fox-Gieg / @n1ckfg / fox-gieg.com | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
await loadScript("https://unpkg.com/[email protected]/latk.js") | |
latk = Latk.read("https://raw.githubusercontent.com/LightningArtist/latk-test-files/main/latk_logo.latk") | |
p = new P5({mode: 'WEBGL'}) // loads p5js library, comment this line after using it once |