~rycwo/blog

0f23897497e45f498a1a706e5cad5984bdc089c0 — Ryan Chan 1 year, 5 months ago 85ec184
Simplify blog to improve loading time
75 files changed, 685 insertions(+), 199 deletions(-)

D .gitmodules
D build-css
M config.toml
A content/about.md
M content/archive/_index.md
M content/archive/rust-wasm-interpolation/index.md
M content/blog/_index.md
M content/blog/forge-dev-log-001-gentle-start.md
M content/blog/forge-dev-log-002-imgui-intro.md
M content/blog/forge-dev-log-003-imgui-canvas.md
D postcss.config.js
A static/font/font.css
A static/font/inter/Inter-Black.woff
A static/font/inter/Inter-Black.woff2
A static/font/inter/Inter-BlackItalic.woff
A static/font/inter/Inter-BlackItalic.woff2
A static/font/inter/Inter-Bold.woff
A static/font/inter/Inter-Bold.woff2
A static/font/inter/Inter-BoldItalic.woff
A static/font/inter/Inter-BoldItalic.woff2
A static/font/inter/Inter-ExtraBold.woff
A static/font/inter/Inter-ExtraBold.woff2
A static/font/inter/Inter-ExtraBoldItalic.woff
A static/font/inter/Inter-ExtraBoldItalic.woff2
A static/font/inter/Inter-ExtraLight.woff
A static/font/inter/Inter-ExtraLight.woff2
A static/font/inter/Inter-ExtraLightItalic.woff
A static/font/inter/Inter-ExtraLightItalic.woff2
A static/font/inter/Inter-Italic.woff
A static/font/inter/Inter-Italic.woff2
A static/font/inter/Inter-Light.woff
A static/font/inter/Inter-Light.woff2
A static/font/inter/Inter-LightItalic.woff
A static/font/inter/Inter-LightItalic.woff2
A static/font/inter/Inter-Medium.woff
A static/font/inter/Inter-Medium.woff2
A static/font/inter/Inter-MediumItalic.woff
A static/font/inter/Inter-MediumItalic.woff2
A static/font/inter/Inter-Regular.woff
A static/font/inter/Inter-Regular.woff2
A static/font/inter/Inter-SemiBold.woff
A static/font/inter/Inter-SemiBold.woff2
A static/font/inter/Inter-SemiBoldItalic.woff
A static/font/inter/Inter-SemiBoldItalic.woff2
A static/font/inter/Inter-Thin.woff
A static/font/inter/Inter-Thin.woff2
A static/font/inter/Inter-ThinItalic.woff
A static/font/inter/Inter-ThinItalic.woff2
A static/font/inter/Inter-italic.var.woff2
A static/font/inter/Inter-roman.var.woff2
A static/font/inter/Inter.var.woff2
A static/font/inter/LICENSE.txt
A static/font/roboto-mono/LICENSE.txt
A static/font/roboto-mono/RobotoMono-Bold.ttf
A static/font/roboto-mono/RobotoMono-BoldItalic.ttf
A static/font/roboto-mono/RobotoMono-ExtraLight.ttf
A static/font/roboto-mono/RobotoMono-ExtraLightItalic.ttf
A static/font/roboto-mono/RobotoMono-Italic.ttf
A static/font/roboto-mono/RobotoMono-Light.ttf
A static/font/roboto-mono/RobotoMono-LightItalic.ttf
A static/font/roboto-mono/RobotoMono-Medium.ttf
A static/font/roboto-mono/RobotoMono-MediumItalic.ttf
A static/font/roboto-mono/RobotoMono-Regular.ttf
A static/font/roboto-mono/RobotoMono-SemiBold.ttf
A static/font/roboto-mono/RobotoMono-SemiBoldItalic.ttf
A static/font/roboto-mono/RobotoMono-Thin.ttf
A static/font/roboto-mono/RobotoMono-ThinItalic.ttf
D style.css
D templates/archive.html
M templates/base.html
M templates/index.html
M templates/page.html
M templates/section.html
D templates/shortcodes/video.html
D turretcss
D .gitmodules => .gitmodules +0 -3
@@ 1,3 0,0 @@
[submodule "turretcss"]
	path = turretcss
	url = https://github.com/turretcss/turretcss.git

D build-css => build-css +0 -2
@@ 1,2 0,0 @@
#!/usr/bin/env bash
npx postcss style.css -o static/style.min.css

M config.toml => config.toml +1 -5
@@ 3,10 3,6 @@ title = "rycwo"
description = "Notes on graphics programming"
generate_feed = true

[markdown]
highlight_code = true
highlight_theme = "classic-modified"

[extra]
email = "rycwo@posteo.net"
sourcehut = "https://git.sr.ht/~rycwo/"
git = "https://git.sr.ht/~rycwo/"

A content/about.md => content/about.md +22 -0
@@ 0,0 1,22 @@
+++
title = "About"
+++

My name is Ryan Chan. I am a graphics programmer with a particular interest in
high-performance computing and game engine technology.

Currently at [Framestore](https://www.framestore.com) making real-time VFX film
production possible through [FUSE](https://framestore.com/work/fuse) — built
entirely in Unreal Engine.

Previously a part-time consultant for [MESH](https://www.meshconsultants.ca/)
and [Metafold](https://www.metafold3d.com/). Solving a variety of unconventional
problems through geometry processing. Also working on LightCycle —
GPU-accelerated software for high-precision 3D printing of metamaterials.

Previously at [DNEG](https://dneg.com) and [Moving Picture
Company](https://www.moving-picture.com) developing high-performance rigging
frameworks and tooling.

Check out [Forge](https://polyforge.org/), a suite of free and open source 2d/3d
artist tools that I develop in my free time!

M content/archive/_index.md => content/archive/_index.md +0 -1
@@ 1,5 1,4 @@
+++
title = "Archive"
sort_by = "date"
template = "archive.html"
+++

M content/archive/rust-wasm-interpolation/index.md => content/archive/rust-wasm-interpolation/index.md +16 -6
@@ 2,6 2,16 @@
title = "Making Rainbows With Rust And WebAssembly"
date = 2019-03-03
+++
<style>
figure {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
figure img {
  margin: 1px;
}
</style>

# A millennial spiral



@@ 37,7 47,7 @@ for Computer Graphics_][sdi-notes] by Ken Anjyo et al. I managed to build a demo
using [Monaco][monaco] to edit JSON input, whilst displaying the result in a
WebGL quad. Here are just some of the abstract masterpieces I generated.

<figure class="figure-grid">
<figure>
  <img src="artifact.01.png"/>
  <img src="artifact.02.png"/>
  <img src="artifact.03.png"/>


@@ 195,7 205,7 @@ option.
One of the interesting properties of the algorithm is that as the power
increases, the colors more closely approximate a [Voronoi diagram][voronoi].

<figure class="figure-grid">
<figure>
  <img src="rbf_gaussian_example.png"/>
</figure>



@@ 205,7 215,7 @@ points we end-up computing zero weights.  The naive way to work around this is
to increase the size of the epsilon value used when checking for zero-length
distances.

<figure class="figure-grid">
<figure>
  <img src="rbf_gaussian_example.png"/>
</figure>



@@ 253,7 263,7 @@ independently of the others.
Here we have a comparison of evaluating two different RBF kernels. Gaussian on
the left, and inverse multiquadric on the right.

<figure class="figure-grid">
<figure>
  <img src="rbf_gaussian_example.png"/>
  <img src="rbf_invmultiquadric_example.png"/>
</figure>


@@ 265,7 275,7 @@ distances between color components are not equal, so the boundaries between each
data point become less well-defined, e.g., we can see the green from the bottom
right point "bleeding" more into the red of the bottom left.

<figure class="figure-grid">
<figure>
  <img src="idw_example.png"/>
  <img src="rbf_example.png"/>
</figure>


@@ 273,7 283,7 @@ right point "bleeding" more into the red of the bottom left.
The differences between the two methods are made more obvious when we enable
visualization of the field for each color component.

<figure class="figure-grid">
<figure>
  <img src="idw_fields_example.png"/>
  <img src="rbf_fields_example.png"/>
</figure>

M content/blog/_index.md => content/blog/_index.md +0 -1
@@ 1,5 1,4 @@
+++
title = "Blog"
sort_by = "date"
paginate_by = 8
+++

M content/blog/forge-dev-log-001-gentle-start.md => content/blog/forge-dev-log-001-gentle-start.md +1 -1
@@ 48,7 48,7 @@ and it is this spin-off in particular, that I have made the most progress on.
The library is called [**Forge**][forge]. It currently possesses at most 20% of
the features I mentioned. Here is the immediate-mode GUI in action.

{{ video(url="https://files.rycwo.dev/borann_db82840.mp4", width=16, height=9, scale=100) }}
<video src="https://files.rycwo.dev/borann_db82840.mp4" muted controls></video>

So there we have it. The short term plan is to fix a few existing bugs with the
GUI framework, implement text rendering, and demo some fancier widgets. Only

M content/blog/forge-dev-log-002-imgui-intro.md => content/blog/forge-dev-log-002-imgui-intro.md +2 -2
@@ 78,7 78,7 @@ if (pressed) {
}
```

{{ video(url="https://files.rycwo.dev/borann_imgui_ex_01.mp4", width=1, height=1, scale=60) }}
<video src="https://files.rycwo.dev/borann_imgui_ex_01.mp4" muted controls></video>

Bear in mind most of the verbosity currently lies in styling the GUI elements
and can be vastly minimized with presets or external configuration. This is an


@@ 113,7 113,7 @@ gui_button(...);
pop_gui_layout_container(context);
```

{{ video(url="https://files.rycwo.dev/borann_imgui_ex_02.mp4", width=1, height=1, scale=60) }}
<video src="https://files.rycwo.dev/borann_imgui_ex_02.mp4" muted controls></video>

Any fancier layout functionality just does a bit of arithmetic to figure out
sizes and spacing for upcoming elements. Currently on the roadmap are a

M content/blog/forge-dev-log-003-imgui-canvas.md => content/blog/forge-dev-log-003-imgui-canvas.md +1 -1
@@ 15,7 15,7 @@ interesting to see the layout in action. Apologies in advance for the jittery
mouse movement, some evenings I work best off-desk so I was stuck with the
trackpad for navigation!

{{ video(url="https://files.rycwo.dev/borann_d9173fd.mp4", width=16, height=9, scale=100) }}
<video src="https://files.rycwo.dev/borann_d9173fd.mp4" muted controls></video>

# Canvas components


D postcss.config.js => postcss.config.js +0 -20
@@ 1,20 0,0 @@
module.exports = {
  plugins: [
    require('postcss-import'),
    require('postcss-preset-env')({
      stage: 1,
      features: {
        'color-mod-function': {
          unresolved: 'warn'
        },
        'custom-properties': {
          preserve: false
        },
        'nesting-rules': true
      }
    }),
    require('cssnano')({
      autoprefixer: false
    })
  ]
}
\ No newline at end of file

A static/font/font.css => static/font/font.css +257 -0
@@ 0,0 1,257 @@
@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 100;
  font-display: swap;
  src: url("inter/Inter-Thin.woff2?v=3.19") format("woff2"),
       url("inter/Inter-Thin.woff?v=3.19") format("woff");
}
@font-face {
  font-family: 'Inter';
  font-style:  italic;
  font-weight: 100;
  font-display: swap;
  src: url("inter/Inter-ThinItalic.woff2?v=3.19") format("woff2"),
       url("inter/Inter-ThinItalic.woff?v=3.19") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 200;
  font-display: swap;
  src: url("inter/Inter-ExtraLight.woff2?v=3.19") format("woff2"),
       url("inter/Inter-ExtraLight.woff?v=3.19") format("woff");
}
@font-face {
  font-family: 'Inter';
  font-style:  italic;
  font-weight: 200;
  font-display: swap;
  src: url("inter/Inter-ExtraLightItalic.woff2?v=3.19") format("woff2"),
       url("inter/Inter-ExtraLightItalic.woff?v=3.19") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 300;
  font-display: swap;
  src: url("inter/Inter-Light.woff2?v=3.19") format("woff2"),
       url("inter/Inter-Light.woff?v=3.19") format("woff");
}
@font-face {
  font-family: 'Inter';
  font-style:  italic;
  font-weight: 300;
  font-display: swap;
  src: url("inter/Inter-LightItalic.woff2?v=3.19") format("woff2"),
       url("inter/Inter-LightItalic.woff?v=3.19") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 400;
  font-display: swap;
  src: url("inter/Inter-Regular.woff2?v=3.19") format("woff2"),
       url("inter/Inter-Regular.woff?v=3.19") format("woff");
}
@font-face {
  font-family: 'Inter';
  font-style:  italic;
  font-weight: 400;
  font-display: swap;
  src: url("inter/Inter-Italic.woff2?v=3.19") format("woff2"),
       url("inter/Inter-Italic.woff?v=3.19") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 500;
  font-display: swap;
  src: url("inter/Inter-Medium.woff2?v=3.19") format("woff2"),
       url("inter/Inter-Medium.woff?v=3.19") format("woff");
}
@font-face {
  font-family: 'Inter';
  font-style:  italic;
  font-weight: 500;
  font-display: swap;
  src: url("inter/Inter-MediumItalic.woff2?v=3.19") format("woff2"),
       url("inter/Inter-MediumItalic.woff?v=3.19") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 600;
  font-display: swap;
  src: url("inter/Inter-SemiBold.woff2?v=3.19") format("woff2"),
       url("inter/Inter-SemiBold.woff?v=3.19") format("woff");
}
@font-face {
  font-family: 'Inter';
  font-style:  italic;
  font-weight: 600;
  font-display: swap;
  src: url("inter/Inter-SemiBoldItalic.woff2?v=3.19") format("woff2"),
       url("inter/Inter-SemiBoldItalic.woff?v=3.19") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 700;
  font-display: swap;
  src: url("inter/Inter-Bold.woff2?v=3.19") format("woff2"),
       url("inter/Inter-Bold.woff?v=3.19") format("woff");
}
@font-face {
  font-family: 'Inter';
  font-style:  italic;
  font-weight: 700;
  font-display: swap;
  src: url("inter/Inter-BoldItalic.woff2?v=3.19") format("woff2"),
       url("inter/Inter-BoldItalic.woff?v=3.19") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 800;
  font-display: swap;
  src: url("inter/Inter-ExtraBold.woff2?v=3.19") format("woff2"),
       url("inter/Inter-ExtraBold.woff?v=3.19") format("woff");
}
@font-face {
  font-family: 'Inter';
  font-style:  italic;
  font-weight: 800;
  font-display: swap;
  src: url("inter/Inter-ExtraBoldItalic.woff2?v=3.19") format("woff2"),
       url("inter/Inter-ExtraBoldItalic.woff?v=3.19") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 900;
  font-display: swap;
  src: url("inter/Inter-Black.woff2?v=3.19") format("woff2"),
       url("inter/Inter-Black.woff?v=3.19") format("woff");
}
@font-face {
  font-family: 'Inter';
  font-style:  italic;
  font-weight: 900;
  font-display: swap;
  src: url("inter/Inter-BlackItalic.woff2?v=3.19") format("woff2"),
       url("inter/Inter-BlackItalic.woff?v=3.19") format("woff");
}

@font-face {
  font-family: 'Roboto Mono';
  font-style:  normal;
  font-weight: 100;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-Thin.ttf") format("truetype");
}
@font-face {
  font-family: 'Roboto Mono';
  font-style:  italic;
  font-weight: 100;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-ThinItalic.ttf") format("truetype");
}

@font-face {
  font-family: 'Roboto Mono';
  font-style:  normal;
  font-weight: 200;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-ExtraLight.ttf") format("truetype");
}
@font-face {
  font-family: 'Roboto Mono';
  font-style:  italic;
  font-weight: 200;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-ExtraLightItalic.ttf") format("truetype");
}

@font-face {
  font-family: 'Roboto Mono';
  font-style:  normal;
  font-weight: 300;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-Light.ttf") format("truetype");
}
@font-face {
  font-family: 'Roboto Mono';
  font-style:  italic;
  font-weight: 300;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-LightItalic.ttf") format("truetype");
}

@font-face {
  font-family: 'Roboto Mono';
  font-style:  normal;
  font-weight: 400;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-Regular.ttf") format("truetype");
}
@font-face {
  font-family: 'Roboto Mono';
  font-style:  italic;
  font-weight: 400;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-Italic.ttf") format("truetype");
}

@font-face {
  font-family: 'Roboto Mono';
  font-style:  normal;
  font-weight: 500;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-Medium.ttf") format("truetype");
}
@font-face {
  font-family: 'Roboto Mono';
  font-style:  italic;
  font-weight: 500;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-MediumItalic.ttf") format("truetype");
}

@font-face {
  font-family: 'Roboto Mono';
  font-style:  normal;
  font-weight: 600;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: 'Roboto Mono';
  font-style:  italic;
  font-weight: 600;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-SemiBoldItalic.ttf") format("truetype");
}

@font-face {
  font-family: 'Roboto Mono';
  font-style:  normal;
  font-weight: 700;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-Bold.ttf") format("truetype");
}
@font-face {
  font-family: 'Roboto Mono';
  font-style:  italic;
  font-weight: 700;
  font-display: swap;
  src: url("roboto-mono/RobotoMono-BoldItalic.ttf") format("truetype");
}

A static/font/inter/Inter-Black.woff => static/font/inter/Inter-Black.woff +0 -0
A static/font/inter/Inter-Black.woff2 => static/font/inter/Inter-Black.woff2 +0 -0
A static/font/inter/Inter-BlackItalic.woff => static/font/inter/Inter-BlackItalic.woff +0 -0
A static/font/inter/Inter-BlackItalic.woff2 => static/font/inter/Inter-BlackItalic.woff2 +0 -0
A static/font/inter/Inter-Bold.woff => static/font/inter/Inter-Bold.woff +0 -0
A static/font/inter/Inter-Bold.woff2 => static/font/inter/Inter-Bold.woff2 +0 -0
A static/font/inter/Inter-BoldItalic.woff => static/font/inter/Inter-BoldItalic.woff +0 -0
A static/font/inter/Inter-BoldItalic.woff2 => static/font/inter/Inter-BoldItalic.woff2 +0 -0
A static/font/inter/Inter-ExtraBold.woff => static/font/inter/Inter-ExtraBold.woff +0 -0
A static/font/inter/Inter-ExtraBold.woff2 => static/font/inter/Inter-ExtraBold.woff2 +0 -0
A static/font/inter/Inter-ExtraBoldItalic.woff => static/font/inter/Inter-ExtraBoldItalic.woff +0 -0
A static/font/inter/Inter-ExtraBoldItalic.woff2 => static/font/inter/Inter-ExtraBoldItalic.woff2 +0 -0
A static/font/inter/Inter-ExtraLight.woff => static/font/inter/Inter-ExtraLight.woff +0 -0
A static/font/inter/Inter-ExtraLight.woff2 => static/font/inter/Inter-ExtraLight.woff2 +0 -0
A static/font/inter/Inter-ExtraLightItalic.woff => static/font/inter/Inter-ExtraLightItalic.woff +0 -0
A static/font/inter/Inter-ExtraLightItalic.woff2 => static/font/inter/Inter-ExtraLightItalic.woff2 +0 -0
A static/font/inter/Inter-Italic.woff => static/font/inter/Inter-Italic.woff +0 -0
A static/font/inter/Inter-Italic.woff2 => static/font/inter/Inter-Italic.woff2 +0 -0
A static/font/inter/Inter-Light.woff => static/font/inter/Inter-Light.woff +0 -0
A static/font/inter/Inter-Light.woff2 => static/font/inter/Inter-Light.woff2 +0 -0
A static/font/inter/Inter-LightItalic.woff => static/font/inter/Inter-LightItalic.woff +0 -0
A static/font/inter/Inter-LightItalic.woff2 => static/font/inter/Inter-LightItalic.woff2 +0 -0
A static/font/inter/Inter-Medium.woff => static/font/inter/Inter-Medium.woff +0 -0
A static/font/inter/Inter-Medium.woff2 => static/font/inter/Inter-Medium.woff2 +0 -0
A static/font/inter/Inter-MediumItalic.woff => static/font/inter/Inter-MediumItalic.woff +0 -0
A static/font/inter/Inter-MediumItalic.woff2 => static/font/inter/Inter-MediumItalic.woff2 +0 -0
A static/font/inter/Inter-Regular.woff => static/font/inter/Inter-Regular.woff +0 -0
A static/font/inter/Inter-Regular.woff2 => static/font/inter/Inter-Regular.woff2 +0 -0
A static/font/inter/Inter-SemiBold.woff => static/font/inter/Inter-SemiBold.woff +0 -0
A static/font/inter/Inter-SemiBold.woff2 => static/font/inter/Inter-SemiBold.woff2 +0 -0
A static/font/inter/Inter-SemiBoldItalic.woff => static/font/inter/Inter-SemiBoldItalic.woff +0 -0
A static/font/inter/Inter-SemiBoldItalic.woff2 => static/font/inter/Inter-SemiBoldItalic.woff2 +0 -0
A static/font/inter/Inter-Thin.woff => static/font/inter/Inter-Thin.woff +0 -0
A static/font/inter/Inter-Thin.woff2 => static/font/inter/Inter-Thin.woff2 +0 -0
A static/font/inter/Inter-ThinItalic.woff => static/font/inter/Inter-ThinItalic.woff +0 -0
A static/font/inter/Inter-ThinItalic.woff2 => static/font/inter/Inter-ThinItalic.woff2 +0 -0
A static/font/inter/Inter-italic.var.woff2 => static/font/inter/Inter-italic.var.woff2 +0 -0
A static/font/inter/Inter-roman.var.woff2 => static/font/inter/Inter-roman.var.woff2 +0 -0
A static/font/inter/Inter.var.woff2 => static/font/inter/Inter.var.woff2 +0 -0
A static/font/inter/LICENSE.txt => static/font/inter/LICENSE.txt +94 -0
@@ 0,0 1,94 @@
Copyright (c) 2016-2020 The Inter Project Authors.
"Inter" is trademark of Rasmus Andersson.
https://github.com/rsms/inter

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL

-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION AND CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

A static/font/roboto-mono/LICENSE.txt => static/font/roboto-mono/LICENSE.txt +202 -0
@@ 0,0 1,202 @@

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

A static/font/roboto-mono/RobotoMono-Bold.ttf => static/font/roboto-mono/RobotoMono-Bold.ttf +0 -0
A static/font/roboto-mono/RobotoMono-BoldItalic.ttf => static/font/roboto-mono/RobotoMono-BoldItalic.ttf +0 -0
A static/font/roboto-mono/RobotoMono-ExtraLight.ttf => static/font/roboto-mono/RobotoMono-ExtraLight.ttf +0 -0
A static/font/roboto-mono/RobotoMono-ExtraLightItalic.ttf => static/font/roboto-mono/RobotoMono-ExtraLightItalic.ttf +0 -0
A static/font/roboto-mono/RobotoMono-Italic.ttf => static/font/roboto-mono/RobotoMono-Italic.ttf +0 -0
A static/font/roboto-mono/RobotoMono-Light.ttf => static/font/roboto-mono/RobotoMono-Light.ttf +0 -0
A static/font/roboto-mono/RobotoMono-LightItalic.ttf => static/font/roboto-mono/RobotoMono-LightItalic.ttf +0 -0
A static/font/roboto-mono/RobotoMono-Medium.ttf => static/font/roboto-mono/RobotoMono-Medium.ttf +0 -0
A static/font/roboto-mono/RobotoMono-MediumItalic.ttf => static/font/roboto-mono/RobotoMono-MediumItalic.ttf +0 -0
A static/font/roboto-mono/RobotoMono-Regular.ttf => static/font/roboto-mono/RobotoMono-Regular.ttf +0 -0
A static/font/roboto-mono/RobotoMono-SemiBold.ttf => static/font/roboto-mono/RobotoMono-SemiBold.ttf +0 -0
A static/font/roboto-mono/RobotoMono-SemiBoldItalic.ttf => static/font/roboto-mono/RobotoMono-SemiBoldItalic.ttf +0 -0
A static/font/roboto-mono/RobotoMono-Thin.ttf => static/font/roboto-mono/RobotoMono-Thin.ttf +0 -0
A static/font/roboto-mono/RobotoMono-ThinItalic.ttf => static/font/roboto-mono/RobotoMono-ThinItalic.ttf +0 -0
D style.css => style.css +0 -49
@@ 1,49 0,0 @@
@import "turretcss/turret/turret.css";

@import url("https://cdn.jsdelivr.net/npm/@xz/fonts@1/serve/inter.min.css");

/* Override styles from turret.css */
:root {
  --font-family-system: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-sans-serif: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --lead-color: var(--dark-300);

  --h1-font-size: 1.75rem;
  --code-font-size: 90%;

  --blockquote-font-size: var(--font-size);
  --blockquote-margin: 2em 0 2em 2em;
}

body {
  max-width: 960px;
}

address {
  font-style: normal;
}

.group a,
.footnote-reference a {
  text-decoration: none;
}

.footnote-definition {
  padding-top: 1em;
}

.footnote-definition p {
  margin: -1.5em 0 1em 0.8em;
  font-size: var(--font-size-s);
}

.figure-grid {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.figure-grid img {
  margin: 1px;
}

D templates/archive.html => templates/archive.html +0 -15
@@ 1,15 0,0 @@
{% extends "base.html" %}

{% block title %}{{ section.title }}{% endblock %}

{% block content %}
<ul>
  {% for page in section.pages %}
  <li class="no-margin-left no-padding-left margin-vertical-s" style="list-style: none">
    <a href="{{ page.permalink | safe }}" class="font-size-l text-decoration-none">
      {{ page.title }}</a><br>
    <time datetime="{{ page.date }}" class="font-size-s">{{ page.date }}</time>
  </li>
  {% endfor %}
</ul>
{% endblock %}

M templates/base.html => templates/base.html +71 -33
@@ 4,9 4,60 @@
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>{% block title %}{% endblock %}</title>
    <link
      rel="stylesheet" type="text/css"
      href="{{ get_url(path="style.min.css") }}" />
    <link rel="stylesheet" type="text/css" href="{{ get_url(path="font/font.css") }}" />
<style>
body {
  font-family: 'Inter', sans-serif;
  max-width: 640px;
  margin: 2rem;
  line-height: 1.4rem;
}
footer {
  margin-top: 1.4rem;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}
address {
  font-style: normal;
}
hr {
  height: 1px;
  background-color: #A3A3A3;
  border: none;
}
video {
  width: 100%;
}
header h1 {
  margin-bottom: 2rem;
}
header a {
  text-decoration: none;
}
header a:hover {
  text-decoration: underline;
}
nav ul {
  padding: 0;
  list-style: none;
}
nav li {
  margin: 0.4rem 0;
}
pre {
  padding: 0.4rem;
  overflow: auto;
  border: 1px dashed #A3A3A3;
}
code {
  font-family: 'Roboto Mono', monospace;
}
.footnote-definition p {
  margin: -1.5em 0 1em 0.8em;
}
</style>
    <!-- TODO: Avoid CDN -->
    <script
      src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
    <script>


@@ 17,36 68,23 @@
    };
    </script>
    <script
      id="MathJax-script"
      async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
      type="text/javascript" id="MathJax-script" async
      src="https://unpkg.com/mathjax@3.2/es5/tex-chtml.js"></script>
  </head>
  <body class="center full-height">
    <div class="container">
      <header class="flex-justify-center flex-wrap align-content-flex-start padding-vertical-xl">
        <nav class="group group-xl margin-top-s">
          <ul>
            <li><h3><a href="{{ config.base_url }}">{{ config.title }}</a></h3></li>
            <li><a href="{{ get_url(path="@/blog/_index.md") }}">Blog</a></li>
            <li><a href="{{ get_url(path="@/archive/_index.md") }}">Archive</a></li>
            <li><a href="{{ get_url(path="atom.xml") }}">RSS</a></li>
          </ul>
        </nav>
        <div class="group group-xl margin-top-s">
          <ul>
            <li><address><a href="mailto:{{ config.extra.email }}">Email</a></address></li>
            <li><a href="{{ config.extra.sourcehut }}">Sourcehut</a></li>
            <li><a href="{{ get_url(path="publickey.txt") }}">PGP</a></li>
          </ul>
        </div>
      </header>
      <main>
        {% block content %}{% endblock %}
      </main>
      <footer class="padding-vertical-xl">
        <p class="font-size-s color-dark-200">Site content under <a
          href="https://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>.
        Source under <a href="https://mit-license.org/">MIT</a>.</p>
      </footer>
    </div>
  <body>
    <header>
      <nav>
        <h1><a href="{{ config.base_url }}">{{ config.title }}</a></h1>
        {% block nav %}{% endblock %}
      </nav>
    </header>
    <main>
      {% block content %}{% endblock %}
    </main>
    <footer>
      <hr />
      <p>Site content under <a
        href="https://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>.</p>
    </footer>
  </body>
</html>

M templates/index.html => templates/index.html +10 -22
@@ 2,26 2,14 @@

{% block title %}{{ config.title }}{% endblock %}

{% block content %}
<p class="margin-bottom-xl">My name is Ryan Chan. I am a graphics programmer
with a particular interest in high-performance compute and game engine
technology.</p>

<p>Currently at <a href="https://www.framestore.com">Framestore</a> making
real-time VFX film production possible through
<a href="https://framestore.com/work/fuse">FUSE</a> — built entirely in Unreal
Engine.

<p>Part-time consultant for <a href="https://www.meshconsultants.ca/">Mesh</a>
and <a href="https://www.metafold3d.com/">Metafold</a>. Solving a variety of
interesting problems through geometry processing and working on LightCycle —
GPU-accelerated software for high-precision 3D printing of metamaterials.

<p class="margin-bottom-xl">Previously at <a href="https://dneg.com">DNEG</a>
and <a href="https://www.moving-picture.com">Moving Picture Company</a>
developing high-performance rigging frameworks and tooling.

<p>Check out <b><a href="https://polyforge.org/">Forge</a></b>, a suite of
<b>free and open source</b> 2d/3d artist tools that I develop in my free
time!</p>
{% block nav %}
<ul>
  <li><a href="{{ get_url(path="@/about.md") }}">about</a></li>
  <li><a href="{{ get_url(path="@/blog/_index.md") }}">blog</a></li>
  <li><a href="{{ get_url(path="@/archive/_index.md") }}">archive</a></li>
  <li><a href="{{ get_url(path="atom.xml") }}">rss</a></li>
  <li><address><a href="mailto:{{ config.extra.email }}">email</a></address></li>
  <li><a href="{{ config.extra.git }}">git</a></li>
  <li><a href="{{ get_url(path="publickey.txt") }}">pgp</a></li>
</ul>
{% endblock %}

M templates/page.html => templates/page.html +3 -3
@@ 4,9 4,9 @@

{% block content %}
<article>
  <header class="margin-bottom-l">
    <h2 class="no-margin-vertical">{{ page.title }}</h2>
    <time datetime="{{ page.date }}" class="font-size-s">{{ page.date }}</time>
  <header>
    <h1 style="margin-bottom: 0.4rem">{{ page.title }}</h1>
    <time style="font-weight: 500" datetime="{{ page.date }}">{{ page.date }}</time>
  </header>
  <section>
    {{ page.content | safe }}

M templates/section.html => templates/section.html +5 -27
@@ 2,35 2,13 @@

{% block title %}{{ section.title }}{% endblock %}

{% block content %}
{% block nav %}
<ul>
  {% for page in paginator.pages %}
  <li class="no-margin-left no-padding-left margin-vertical-s" style="list-style: none">
    <a href="{{ page.permalink | safe }}" class="font-size-l text-decoration-none">
      {{ page.title }}</a><br>
    <time datetime="{{ page.date }}" class="font-size-s">{{ page.date }}</time>
  {% for page in section.pages %}
  <li>
    <a href="{{ page.permalink | safe }}">{{ page.title }}</a><br />
    <time datetime="{{ page.date }}">{{ page.date }}</time>
  </li>
  {% endfor %}
</ul>
<nav class="group group-s">
  <ul>
    {% if paginator.current_index > 2 %}
    <li><a href="{{ paginator.first }}">1</a></li>
    <li>...</li>
    {% endif %}
    {% if paginator.previous %}
    {% set prev_index = paginator.current_index - 1 %}
    <li><a href="{{ paginator.previous }}">{{ prev_index }}</a></li>
    {% endif %}
    <li><b>{{ paginator.current_index }}</b></li>
    {% if paginator.next %}
    {% set next_index = paginator.current_index + 1 %}
    <li><a href="{{ paginator.next }}">{{ next_index }}</a></li>
    {% endif %}
    {% if paginator.current_index < paginator.number_pagers - 1 %}
    <li>...</li>
    <li><a href="{{ paginator.last }}">{{ paginator.number_pagers }}</a></li>
    {% endif %}
  </ul>
</nav>
{% endblock %}

D templates/shortcodes/video.html => templates/shortcodes/video.html +0 -7
@@ 1,7 0,0 @@
<div class="flex justify-content-center">
  <div
    class="media"
    style="width: {{ scale }}%; padding-top: calc(({{ height }} / {{ width }}) * {{ scale }}%)">
    <video src="{{ url }}" muted controls></video>
  </div>
</div>

D turretcss => turretcss +0 -1
@@ 1,1 0,0 @@
Subproject commit b392cc4f8a7f4424dc060fcda389bf165cc7782c