------------------------------------------------------------
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 ------------------------------------------------------------
commit 93776330d896a693d4a0595b5cd70b2bc974b5d4
Author: root <root@sand.scroll.pub> Date: Fri Sep 6 23:28:59 2024 +0000 Initial commit diff --git a/header.scroll b/header.scroll new file mode 100644 index 0000000..3e8cc10 --- /dev/null +++ b/header.scroll @@ -0,0 +1,9 @@ +buildHtml +buildTxt + +metaTags +gazetteCss +homeButton +viewSourceButton +printTitle +mediumColumns 1 diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..86c509e --- /dev/null +++ b/index.scroll @@ -0,0 +1,7 @@ +title Hello world + +header.scroll + +Welcome to my folder. + +scrollVersionLink