diff --git a/content/posts/cellular-automata-toys/_hero.png b/content/posts/cellular-automata-toys/_hero.png new file mode 100644 index 0000000..20523db Binary files /dev/null and b/content/posts/cellular-automata-toys/_hero.png differ diff --git a/content/posts/cellular-automata-toys/hero.png b/content/posts/cellular-automata-toys/hero.png new file mode 100644 index 0000000..7cfec66 Binary files /dev/null and b/content/posts/cellular-automata-toys/hero.png differ diff --git a/content/posts/cellular-automata-toys/index.md b/content/posts/cellular-automata-toys/index.md new file mode 100644 index 0000000..b15e191 --- /dev/null +++ b/content/posts/cellular-automata-toys/index.md @@ -0,0 +1,15 @@ ++++ +title = "cellular automata toys in löve2d" +date = "2022-09-15" +[taxonomies] +tags = ["cellular-automata", "lua", "löve2d"] ++++ + +
+The oracle reading the future from Conway's Game of Life, technomancer aesthetic, digital illustration, 8k uhd - generated using Stable Diffusion +

The oracle reading the future from Conway's Game of Life, technomancer aesthetic, digital illustration, 8k uhd - generated using Stable Diffusion

+
+ +after reading [Andrew Healey's blog post about Langton's Ant](https://healeycodes.com/virtual-ants), i found myself inspired to reimplement some of his work. i've read numerous rave reviews of löve2d for writing simple toys, so i decided to give that a shot here as well. Langton's Ant went well enough that i also implemented Life and Wireworld. + +[check the toys out here; there are instructions for running with löve2d directly or using nix](https://git.mat.services/mat/love-cellular-automata). the code is hosted on a personal instance of gitea, so if you want to collaborate or share feedback, you'll have to request an account or shoot me an email. diff --git a/content/posts/static-site-with-nix-and-caddy/index.md b/content/posts/static-site-with-nix-and-caddy/index.md index 3536802..4f2869e 100644 --- a/content/posts/static-site-with-nix-and-caddy/index.md +++ b/content/posts/static-site-with-nix-and-caddy/index.md @@ -284,7 +284,7 @@ RUN caddy ``` We can use a multi-stage build to run the Nix build first, then copy that into a container with the Caddyfile and run that. We're set to deploy! -```shell +```bash flyctl deploy ``` diff --git a/nix/optimize-images.nix b/nix/optimize-images.nix index 84bb309..ed99778 100644 --- a/nix/optimize-images.nix +++ b/nix/optimize-images.nix @@ -8,7 +8,7 @@ writeShellScriptBin "optimize-images" '' file=$(basename $image) newimage=$path/''${file:1} echo "optimizing $image" - ${pngquant}/bin/pngquant --quality 80-90 -f -o $newimage $image + ${pngquant}/bin/pngquant --quality 70-90 -f -o $newimage $image oldsize=$(stat --format=%s $image) newsize=$(stat --format=%s $newimage) pct=$(${bc}/bin/bc <<< "scale=1; $newsize * 100 / $oldsize") diff --git a/sass/style/parts/_image.scss b/sass/style/parts/_image.scss index c2e5479..82fc46f 100644 --- a/sass/style/parts/_image.scss +++ b/sass/style/parts/_image.scss @@ -4,6 +4,11 @@ img:not(#logo):not(#pixel) { border-radius: 5px; } +img.hero { + margin-top: 1.5rem; + border: none !important; +} + figure { box-sizing: border-box; display: inline-block;