From 3ed5f84b3f065f4099aedac2e877398a6e13d53f Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Sat, 17 Apr 2021 22:33:16 +0200 Subject: [PATCH] 420: CatMultiverse --- 420/CatMultiverse.js | 0 420/cat.png | Bin 0 -> 1349160 bytes StarryNights/GaLactic.js | 2 +- StarryNights/README.md | 2 ++ StarryNights/Shoe.js | 32 ++++++++++++++++++++++++++++++++ ideas.md | 10 ++++++++-- 6 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 420/CatMultiverse.js create mode 100644 420/cat.png create mode 100644 StarryNights/README.md create mode 100644 StarryNights/Shoe.js diff --git a/420/CatMultiverse.js b/420/CatMultiverse.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/420/CatMultiverse.js diff --git a/420/cat.png b/420/cat.png new file mode 100644 index 0000000..a89c697 Binary files /dev/null and b/420/cat.png differ diff --git a/StarryNights/GaLactic.js b/StarryNights/GaLactic.js index 07bf5ca..07bf40a 100644 --- a/StarryNights/GaLactic.js +++ b/StarryNights/GaLactic.js @@ -19,4 +19,4 @@ src(o1) .scale(() => 1.5 + Math.sin(time/50) * 0.6) .out(o3) -render(o3) +render() diff --git a/StarryNights/README.md b/StarryNights/README.md new file mode 100644 index 0000000..2a9bcf0 --- /dev/null +++ b/StarryNights/README.md @@ -0,0 +1,2 @@ +# Starry Nights +> Various windows into space diff --git a/StarryNights/Shoe.js b/StarryNights/Shoe.js new file mode 100644 index 0000000..d8b0c44 --- /dev/null +++ b/StarryNights/Shoe.js @@ -0,0 +1,32 @@ +// Based on NASA LSPN-1725 (Comet P/Halley as taken March 8, 1986 by W. Liller, Easter Island) +s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/ShoemakerLevy9.png"); +src(s0).out(o0) + +shape(93) + .modulateRotate(noise(0.26)) + .blend(noise(0.6,0.001),0.36) + .blend(noise().mask(shape(30).scale(0.95))) + .blend(voronoi(90,0.8).mask(shape(30).scale(0.85)),0.1) + .add(voronoi(30,0.01).mask(shape(30).scale(0.75)),0.4) + .blend(voronoi(0.2,0.01).mask(shape(30).scale(0.55)),0.2) + .color(216/256,149/256,97/256) + // .scale(() => 0.5 + 3 * Math.sin(time/60)) +.out(o1) + +src(o0) + .scale(0.8) + .scrollY(-0.125) + .rotate(-120) + .blend(src(o3).scale(0.9).brightness(0.02)) + .add( // Add Jupiter + src(o1) + .mask(src(o1).thresh(0.125)) // Adjust brightness + .scale(0.95) + ) +.layer(o1) +.out(o2) + +src(o2) +.modulate(o2,() => Math.sin(time/1000)) +.out(o3) +render(o3) diff --git a/ideas.md b/ideas.md index ff5447a..95940fb 100644 --- a/ideas.md +++ b/ideas.md @@ -1,14 +1,20 @@ # Fonds - 420 SPACE CAT - +- Ams Fluo # Formes Mask with shape/noise -``` +```js .mask( shape(25, 0.25).modulateScale( noise(400.5, 0.5) ) ) ``` + + +// Pixelated shape, e.g. on Shoe +```js +.modulatePixelate(gradient(0.93,() => Math.sin(time/1000)).rotate(() => time/100 % 360).scale(0.2),93) +``` -- libgit2 0.27.0