------------------------------------------------------------
commit 58499e7c78e299306c3ffbf4d76c3c72d4fafd78
Author: root <root@hub.scroll.pub> Date: Fri Sep 27 23:47:55 2024 +0000 Updated index.scroll diff --git a/index.scroll b/index.scroll index bc8840e..6815e6f 100644 --- a/index.scroll +++ b/index.scroll @@ -6,6 +6,7 @@ header.scroll https://x.com/YoheiNishitsuji/status/1839575714678423890 beautiful tweet image ss.png + width 200 # Step 1: ------------------------------------------------------------
commit f6d269e92c5c18ae81a0af6a1a6cab9b3a1aff47
Author: root <root@hub.scroll.pub> Date: Fri Sep 27 23:47:48 2024 +0000 Updated index.scroll diff --git a/index.scroll b/index.scroll index 5b05166..bc8840e 100644 --- a/index.scroll +++ b/index.scroll @@ -1,35 +1,35 @@ -title Shader Toy demo - -header.scroll - -# Reproducing this beautiful tweet - https://x.com/YoheiNishitsuji/status/1839575714678423890 beautiful tweet - -image shadertoy.jpg - -# Step 1: - -Go to https://www.shadertoy.com/new - -# Step 2: Paste the below code in - -Then run! - -code - void mainImage( out vec4 fragColor, in vec2 fragCoord ) - { - vec2 p = (fragCoord.xy * 2.0 - iResolution.xy) / iResolution.y * 0.5 - 0.5; - vec3 C = vec3(0.0); - - for (float i = 1.0; i < 99.0; i++) - { - float j = i + 1.0; - vec2 q = p - vec2(sin(j + 1.0), sin(j + iTime)) / (sin(iTime - j / 8.0 + 9.0) + 1.0) * 0.1; - C += 0.01 / length(q * 99.0); - } - - fragColor = vec4(C * 5.0, 0.0); - } - -copyButtons -scrollVersionLink +title Shader Toy demo + +header.scroll + +# Reproducing this beautiful tweet + https://x.com/YoheiNishitsuji/status/1839575714678423890 beautiful tweet + +image ss.png + +# Step 1: + +Go to https://www.shadertoy.com/new + +# Step 2: Paste the below code in + +Then run! + +code + void mainImage( out vec4 fragColor, in vec2 fragCoord ) + { + vec2 p = (fragCoord.xy * 2.0 - iResolution.xy) / iResolution.y * 0.5 - 0.5; + vec3 C = vec3(0.0); + + for (float i = 1.0; i < 99.0; i++) + { + float j = i + 1.0; + vec2 q = p - vec2(sin(j + 1.0), sin(j + iTime)) / (sin(iTime - j / 8.0 + 9.0) + 1.0) * 0.1; + C += 0.01 / length(q * 99.0); + } + + fragColor = vec4(C * 5.0, 0.0); + } + +copyButtons +scrollVersionLink ------------------------------------------------------------
commit 642a64c65f00cd30801cf85588a873dde851f55a
Author: root <root@hub.scroll.pub> Date: Fri Sep 27 23:47:38 2024 +0000 Added ss.png diff --git a/ss.png b/ss.png new file mode 100644 index 0000000..bdcfa12 Binary files /dev/null and b/ss.png differ ------------------------------------------------------------
commit 57da229aa4331289c443ac721af92f54c4ca5247
Author: root <root@hub.scroll.pub> Date: Fri Sep 27 23:46:56 2024 +0000 Updated header.scroll diff --git a/header.scroll b/header.scroll index 3e8cc10..1ba8e4e 100644 --- a/header.scroll +++ b/header.scroll @@ -1,9 +1,9 @@ -buildHtml -buildTxt - -metaTags -gazetteCss -homeButton -viewSourceButton -printTitle -mediumColumns 1 +buildHtml +buildTxt + +metaTags +theme dark +homeButton +viewSourceButton +printTitle +mediumColumns 1 ------------------------------------------------------------
commit 4eb847d97d535e848996529d4b9826b1a76f5b04
Author: root <root@hub.scroll.pub> Date: Fri Sep 27 23:46:39 2024 +0000 Updated index.scroll diff --git a/index.scroll b/index.scroll index ab333c7..5b05166 100644 --- a/index.scroll +++ b/index.scroll @@ -3,7 +3,7 @@ title Shader Toy demo header.scroll # Reproducing this beautiful tweet - https://x.com/YoheiNishitsuji/status/1831958009867604002 beautiful tweet + https://x.com/YoheiNishitsuji/status/1839575714678423890 beautiful tweet image shadertoy.jpg @@ -16,31 +16,19 @@ Go to https://www.shadertoy.com/new Then run! code - vec3 hsv(float h, float s, float v) { - vec3 c = vec3(1.0 - abs(mod(h * 6.0, 2.0) - 1.0)); - vec3 rgb = mix(vec3(1.0), c, s); - return v * rgb; - } - - void mainImage( out vec4 fragColor, in vec2 fragCoord ) { - float iTime = iTime; // Use iTime for Shadertoy time tracking - vec2 iResolution = iResolution.xy; + vec2 p = (fragCoord.xy * 2.0 - iResolution.xy) / iResolution.y * 0.5 - 0.5; + vec3 C = vec3(0.0); - float i = 0.0, e, R, s; - vec3 q, p; - vec3 d = vec3(fragCoord.xy / iResolution * 0.6 + vec2(-0.3, 0.65), 1.0); - - for (q.zy--; i++ < 90.0;) { - fragColor.rgb += hsv(0.3 - p.y, 0.5, min(e * s - q.z, R) / 9.0); - s = 3.0; - p = q += d * e * R * 0.2; - p = vec3(log2(R = length(p)), exp(-p.z / R) + R, atan(p.y, p.x) * s); - - for (e = --p.y; s < 500.0; s += s) - e += dot(sin(p.yzx * s - iTime), 0.9 + cos(p.yxy * s + iTime + iTime)) / s * 0.15; + for (float i = 1.0; i < 99.0; i++) + { + float j = i + 1.0; + vec2 q = p - vec2(sin(j + 1.0), sin(j + iTime)) / (sin(iTime - j / 8.0 + 9.0) + 1.0) * 0.1; + C += 0.01 / length(q * 99.0); } + + fragColor = vec4(C * 5.0, 0.0); } copyButtons ------------------------------------------------------------
commit 262fad917a50f5d3904426b5d1358afacf8a82f2
Author: root <root@sand.scroll.pub> Date: Fri Sep 6 23:31:41 2024 +0000 Updated index.scroll diff --git a/index.scroll b/index.scroll index 5a523c5..ab333c7 100644 --- a/index.scroll +++ b/index.scroll @@ -1,48 +1,47 @@ -title Shader Toy demo - -header.scroll - -# Reproducing this beautiful tweet - https://x.com/YoheiNishitsuji/status/1831958009867604002 beautiful tweet - -copyButtons - -image shadertoy.jpg - -# Step 1: - -Go to https://www.shadertoy.com/new - -# Step 2: Paste the below code in - -Then run! - -code - vec3 hsv(float h, float s, float v) { - vec3 c = vec3(1.0 - abs(mod(h * 6.0, 2.0) - 1.0)); - vec3 rgb = mix(vec3(1.0), c, s); - return v * rgb; - } - - - void mainImage( out vec4 fragColor, in vec2 fragCoord ) - { - float iTime = iTime; // Use iTime for Shadertoy time tracking - vec2 iResolution = iResolution.xy; - - float i = 0.0, e, R, s; - vec3 q, p; - vec3 d = vec3(fragCoord.xy / iResolution * 0.6 + vec2(-0.3, 0.65), 1.0); - - for (q.zy--; i++ < 90.0;) { - fragColor.rgb += hsv(0.3 - p.y, 0.5, min(e * s - q.z, R) / 9.0); - s = 3.0; - p = q += d * e * R * 0.2; - p = vec3(log2(R = length(p)), exp(-p.z / R) + R, atan(p.y, p.x) * s); - - for (e = --p.y; s < 500.0; s += s) - e += dot(sin(p.yzx * s - iTime), 0.9 + cos(p.yxy * s + iTime + iTime)) / s * 0.15; - } - } - -scrollVersionLink +title Shader Toy demo + +header.scroll + +# Reproducing this beautiful tweet + https://x.com/YoheiNishitsuji/status/1831958009867604002 beautiful tweet + +image shadertoy.jpg + +# Step 1: + +Go to https://www.shadertoy.com/new + +# Step 2: Paste the below code in + +Then run! + +code + vec3 hsv(float h, float s, float v) { + vec3 c = vec3(1.0 - abs(mod(h * 6.0, 2.0) - 1.0)); + vec3 rgb = mix(vec3(1.0), c, s); + return v * rgb; + } + + + void mainImage( out vec4 fragColor, in vec2 fragCoord ) + { + float iTime = iTime; // Use iTime for Shadertoy time tracking + vec2 iResolution = iResolution.xy; + + float i = 0.0, e, R, s; + vec3 q, p; + vec3 d = vec3(fragCoord.xy / iResolution * 0.6 + vec2(-0.3, 0.65), 1.0); + + for (q.zy--; i++ < 90.0;) { + fragColor.rgb += hsv(0.3 - p.y, 0.5, min(e * s - q.z, R) / 9.0); + s = 3.0; + p = q += d * e * R * 0.2; + p = vec3(log2(R = length(p)), exp(-p.z / R) + R, atan(p.y, p.x) * s); + + for (e = --p.y; s < 500.0; s += s) + e += dot(sin(p.yzx * s - iTime), 0.9 + cos(p.yxy * s + iTime + iTime)) / s * 0.15; + } + } + +copyButtons +scrollVersionLink ------------------------------------------------------------
commit 215a5917fafe656ca0dd747783617ff74a7ab6e7
Author: root <root@sand.scroll.pub> Date: Fri Sep 6 23:31:24 2024 +0000 Updated index.scroll diff --git a/index.scroll b/index.scroll index 54cf7c3..5a523c5 100644 --- a/index.scroll +++ b/index.scroll @@ -2,6 +2,9 @@ title Shader Toy demo header.scroll +# Reproducing this beautiful tweet + https://x.com/YoheiNishitsuji/status/1831958009867604002 beautiful tweet + copyButtons image shadertoy.jpg ------------------------------------------------------------
commit d3c7f52beb3267dffbdf8e9b9a9a7e4a2592ca3e
Author: root <root@sand.scroll.pub> Date: Fri Sep 6 23:30:37 2024 +0000 Updated index.scroll diff --git a/index.scroll b/index.scroll index 602968b..54cf7c3 100644 --- a/index.scroll +++ b/index.scroll @@ -1,43 +1,45 @@ -title Hello world - -header.scroll - -copyButtons - -# Step 1: - -Go to https://www.shadertoy.com/new - -# Step 2: Paste the below code in - -Then run! - -code - vec3 hsv(float h, float s, float v) { - vec3 c = vec3(1.0 - abs(mod(h * 6.0, 2.0) - 1.0)); - vec3 rgb = mix(vec3(1.0), c, s); - return v * rgb; - } - - - void mainImage( out vec4 fragColor, in vec2 fragCoord ) - { - float iTime = iTime; // Use iTime for Shadertoy time tracking - vec2 iResolution = iResolution.xy; - - float i = 0.0, e, R, s; - vec3 q, p; - vec3 d = vec3(fragCoord.xy / iResolution * 0.6 + vec2(-0.3, 0.65), 1.0); - - for (q.zy--; i++ < 90.0;) { - fragColor.rgb += hsv(0.3 - p.y, 0.5, min(e * s - q.z, R) / 9.0); - s = 3.0; - p = q += d * e * R * 0.2; - p = vec3(log2(R = length(p)), exp(-p.z / R) + R, atan(p.y, p.x) * s); - - for (e = --p.y; s < 500.0; s += s) - e += dot(sin(p.yzx * s - iTime), 0.9 + cos(p.yxy * s + iTime + iTime)) / s * 0.15; - } - } - -scrollVersionLink +title Shader Toy demo + +header.scroll + +copyButtons + +image shadertoy.jpg + +# Step 1: + +Go to https://www.shadertoy.com/new + +# Step 2: Paste the below code in + +Then run! + +code + vec3 hsv(float h, float s, float v) { + vec3 c = vec3(1.0 - abs(mod(h * 6.0, 2.0) - 1.0)); + vec3 rgb = mix(vec3(1.0), c, s); + return v * rgb; + } + + + void mainImage( out vec4 fragColor, in vec2 fragCoord ) + { + float iTime = iTime; // Use iTime for Shadertoy time tracking + vec2 iResolution = iResolution.xy; + + float i = 0.0, e, R, s; + vec3 q, p; + vec3 d = vec3(fragCoord.xy / iResolution * 0.6 + vec2(-0.3, 0.65), 1.0); + + for (q.zy--; i++ < 90.0;) { + fragColor.rgb += hsv(0.3 - p.y, 0.5, min(e * s - q.z, R) / 9.0); + s = 3.0; + p = q += d * e * R * 0.2; + p = vec3(log2(R = length(p)), exp(-p.z / R) + R, atan(p.y, p.x) * s); + + for (e = --p.y; s < 500.0; s += s) + e += dot(sin(p.yzx * s - iTime), 0.9 + cos(p.yxy * s + iTime + iTime)) / s * 0.15; + } + } + +scrollVersionLink ------------------------------------------------------------
commit 08162e9000b54f24ebb39190166f2acb22ee64eb
Author: root <root@sand.scroll.pub> Date: Fri Sep 6 23:30:25 2024 +0000 Added shadertoy.jpg diff --git a/shadertoy.jpg b/shadertoy.jpg new file mode 100644 index 0000000..abced5d Binary files /dev/null and b/shadertoy.jpg differ ------------------------------------------------------------
commit ea7f7a31d42791d8fc72ab5428c2b19e475c6404
Author: root <root@sand.scroll.pub> Date: Fri Sep 6 23:29:30 2024 +0000 Updated index.scroll diff --git a/index.scroll b/index.scroll index 86c509e..602968b 100644 --- a/index.scroll +++ b/index.scroll @@ -2,6 +2,42 @@ title Hello world header.scroll -Welcome to my folder. +copyButtons + +# Step 1: + +Go to https://www.shadertoy.com/new + +# Step 2: Paste the below code in + +Then run! + +code + vec3 hsv(float h, float s, float v) { + vec3 c = vec3(1.0 - abs(mod(h * 6.0, 2.0) - 1.0)); + vec3 rgb = mix(vec3(1.0), c, s); + return v * rgb; + } + + + void mainImage( out vec4 fragColor, in vec2 fragCoord ) + { + float iTime = iTime; // Use iTime for Shadertoy time tracking + vec2 iResolution = iResolution.xy; + + float i = 0.0, e, R, s; + vec3 q, p; + vec3 d = vec3(fragCoord.xy / iResolution * 0.6 + vec2(-0.3, 0.65), 1.0); + + for (q.zy--; i++ < 90.0;) { + fragColor.rgb += hsv(0.3 - p.y, 0.5, min(e * s - q.z, R) / 9.0); + s = 3.0; + p = q += d * e * R * 0.2; + p = vec3(log2(R = length(p)), exp(-p.z / R) + R, atan(p.y, p.x) * s); + + for (e = --p.y; s < 500.0; s += s) + e += dot(sin(p.yzx * s - iTime), 0.9 + cos(p.yxy * s + iTime + iTime)) / s * 0.15; + } + } scrollVersionLink