diff options
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | TODO.norg | 11 | ||||
| -rw-r--r-- | justfile | 1 | ||||
| -rw-r--r-- | sketches/06/screenshots/1.jpg | bin | 0 -> 136444 bytes | |||
| -rw-r--r-- | sketches/06/strange.frag | 12 |
5 files changed, 16 insertions, 11 deletions
@@ -21,3 +21,6 @@ Making cool looking things for fun. They're all inside the [sketches](./sketches |-----------------------------------------|-----------------------------------------| |  |  | +## 06: Magic circlular circles + + @@ -1,17 +1,6 @@ -* Week - - (x) Mandelbrot | BQN + Glsl - - (x) Newton's fractals | Glsl - - ( ) Flow | Glsl - - (x) polka | Glsl - - ( ) Dragon deez nuts | Racket - * Ideas - - Dragon fractal - - Newton's fractals - - Mandelbrot - Flow fields on image - Iterate over messytones - - Spinning poin (Future me note: what?) - Siperski triangle - 3d game of life - Webcam effects @@ -14,3 +14,4 @@ s5_run: (sketch "05" "racket" "dragon.rkt") s5: npx nodemon -e rkt -x 'clear && just s5_run' +s6: (sketch "06" "glslViewer" "strange.frag") diff --git a/sketches/06/screenshots/1.jpg b/sketches/06/screenshots/1.jpg Binary files differnew file mode 100644 index 0000000..f8d02f8 --- /dev/null +++ b/sketches/06/screenshots/1.jpg diff --git a/sketches/06/strange.frag b/sketches/06/strange.frag new file mode 100644 index 0000000..3abeb33 --- /dev/null +++ b/sketches/06/strange.frag @@ -0,0 +1,12 @@ +varying vec4 v_position; +uniform vec2 u_resolution; +uniform float u_time; + +void main() { + float ratio = u_resolution.x / u_resolution.y; + vec2 pos = v_position.xy/vec2(1.0, ratio); + + float f = length(fract(pos * 10.0) - 0.5) * exp(-length(pos)); + f = abs(sin(f*30. + u_time)/3.); + gl_FragColor = vec4(f*0.6, f*0.4, f*1.0, 1.0); +} |
