Skip to content

armgit / klad

Public Imported from GitHub
0

A drawing app built for agent/human collaboration

Rust

The format promise

Indicode BVf263d585be73
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bb084e1..ded8958 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ The first builds, and klad's licences.
- In-betweens blend colours evenly (in OKLab), so light can follow a turning limb when the second key is coloured for it.
- `klad arcs` follows the part of a foot on the ground: a heel-to-toe roll is no longer reported as a slide.
- Help > Report a problem shows the report before it is copied (version, system, the last messages and lines of klad's log, with your home folder hidden) and can zip the drawing to attach; `klad report` prints the same. Errors and crashes are kept in a small log for it.
+- The format promise: from 1.0, a drawing saved by any release opens in every later one with nothing lost. Each release keeps copies of the samples it saved, and the tests open them all with each new build.
- Help > Guides and Help > What's new open klad's guides and this changelog on klad.studio; the welcome on the start window links the guides too.
- Support by email: Help > Contact support opens an email to [email protected] with the version and your system filled in; Report a problem can email its report there too, and About links klad.studio and the address. Crash messages name the address as well as the issues page.
- Messages say what happened and what to do next; when klad itself goes wrong it says so, and that your work is saved.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 1f22607..2c7500f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -23,7 +23,7 @@ These come from `CLAUDE.md`, which is also the guide for coding agents working o
- No comments in code except `// TODO:`. Names and small functions carry the meaning.
- Iterator chains where they read better than loops; plain loops in hot pixel code where they are clearer or faster.
- Determinism: `core`, `brush` and `render` give the same pixels on every machine. Transcendental math goes through `libm`, randomness through the seeded `klad_core::rng`, no clock, no `HashMap` order in output, parallelism only over independent tiles or rows. A change that moves a sample's hash says why.
-- Drawings never break: a format change bumps the format version (`klad/N`) and adds a migration, so older `.klad` drawings open unchanged, and updates `docs/format.md`.
+- Drawings never break: a format change bumps the format version (`klad/N`) and adds a migration, so older `.klad` drawings open unchanged, and updates `docs/format.md`. A migration converts, it never drops: what a drawing holds survives every later version. (`klad/4` dropping the rigs of `klad/1` to `klad/3`, before 1.0, was the last exception.) `tests/formats/` holds drawings saved by each release with their frame hashes; the test opens them all, and a change that makes one render differently is fixed, or listed in `tests/formats/accepted.txt` (`<version>/<bundle> <frame> <new hash>`) and in the release notes.
- Dependencies are permissive only (MIT, Apache-2.0, BSD, ISC, Zlib and the others in `deny.toml`). Adding one means `just audit` passes and `just notices` regenerates `THIRD-PARTY-NOTICES.md` in the same change.
- Every feature has a CLI form and an editor form: a new command or op also gets its place in the editor, and an editor feature gets its command or op, with tests on both sides. The ops that draw from shapes (`ink`, `light`, `hatch`, `paint`, `scatter`) are the exception and stay CLI only.
- New behaviour comes with tests in the crate that owns it. `just lint` and `just test` are clean before a pull request.
@@ -43,7 +43,7 @@ klad is source-available, not open source (`LICENSE`): its licence lets you send
The Mac and Windows builds are sold on itch.io (and later Steam); Linux is built from source. GitHub has the release notes, not downloads.
-1. `just build minor` (or `major`) sets the release's version; move the changes under "Unreleased" in `CHANGELOG.md` to a section `## x.y.z (date)` with that version. Commit.
+1. `just build minor` (or `major`) sets the release's version; move the changes under "Unreleased" in `CHANGELOG.md` to a section `## x.y.z (date)` with that version.. `just formats x.y.z` saves the samples with their hashes into `tests/formats/x.y.z/` (after `just samples`). Commit.
2. On a Mac with [butler](https://itch.io/docs/butler/) logged in: `ITCH_TARGET=<user>/<page> just itch-mac` builds the app (arm64 and x86_64 in one) and pushes it to the page's `mac` channel.
3. Tag `vx.y.z` and push the tag. The `release` workflow runs the checks, builds the Windows version and pushes it to the `windows` channel (with the `BUTLER_API_KEY` secret and the `ITCH_TARGET` variable set in the repository), then publishes that changelog section as the release notes, which the editor's update check reads.
4. The builds are not signed yet.
diff --git a/crates/cli/tests/formats.rs b/crates/cli/tests/formats.rs
new file mode 100644
index 0000000..c2ff263
--- /dev/null
+++ b/crates/cli/tests/formats.rs
@@ -0,0 +1,114 @@
+use std::collections::BTreeMap;
+use std::fs;
+use std::path::{Path, PathBuf};
+use std::process::Command;
+
+fn copy(from: &Path, to: &Path) {
+ fs::create_dir_all(to).unwrap();
+ fs::read_dir(from).unwrap().map(Result::unwrap).for_each(|entry| {
+ let target = to.join(entry.file_name());
+ match entry.file_type().unwrap().is_dir() {
+ true => copy(&entry.path(), &target),
+ false => {
+ fs::copy(entry.path(), target).unwrap();
+ }
+ }
+ });
+}
+
+fn hashes(bundle: &Path) -> BTreeMap<String, String> {
+ let out = Command::new(env!("CARGO_BIN_EXE_klad"))
+ .args(["hash", bundle.to_str().unwrap(), "--all", "--no-cache"])
+ .output()
+ .unwrap();
+ assert!(
+ out.status.success(),
+ "{} does not open: {}",
+ bundle.display(),
+ String::from_utf8_lossy(&out.stderr)
+ );
+ String::from_utf8_lossy(&out.stdout)
+ .lines()
+ .filter_map(|l| {
+ let mut words = l.split_whitespace().skip(1);
+ Some((words.next()?.to_string(), words.next()?.to_string()))
+ })
+ .collect()
+}
+
+fn accepted(root: &Path) -> BTreeMap<(String, String), String> {
+ fs::read_to_string(root.join("accepted.txt"))
+ .unwrap_or_default()
+ .lines()
+ .filter(|l| !l.trim().is_empty() && !l.starts_with('#'))
+ .filter_map(|l| {
+ let mut words = l.split_whitespace();
+ Some((
+ (words.next()?.to_string(), words.next()?.to_string()),
+ words.next()?.to_string(),
+ ))
+ })
+ .collect()
+}
+
+#[test]
+fn drawings_saved_by_every_release_open_and_render_as_they_did() {
+ let root = Path::new(env!("CARGO_MANIFEST_DIR")).join("../../tests/formats");
+ let accepted = accepted(&root);
+ let mut versions: Vec<PathBuf> = fs::read_dir(&root)
+ .unwrap()
+ .map(|e| e.unwrap().path())
+ .filter(|p| p.join("hashes.txt").is_file())
+ .collect();
+ versions.sort();
+ assert!(!versions.is_empty(), "tests/formats holds the drawings of each release");
+ let scratch = std::env::temp_dir().join(format!("klad-formats-{}", std::process::id()));
+ let mut formats = Vec::new();
+ let mut wrong = Vec::new();
+ versions.iter().for_each(|version| {
+ let name = version.file_name().unwrap().to_string_lossy().to_string();
+ let mut saved: BTreeMap<String, BTreeMap<String, String>> = BTreeMap::new();
+ fs::read_to_string(version.join("hashes.txt"))
+ .unwrap()
+ .lines()
+ .filter_map(|l| {
+ let mut words = l.split_whitespace();
+ Some((
+ words.next()?.to_string(),
+ words.next()?.to_string(),
+ words.next()?.to_string(),
+ ))
+ })
+ .for_each(|(bundle, frame, digest)| {
+ saved.entry(bundle).or_default().insert(frame, digest);
+ });
+ saved.iter().for_each(|(bundle, frames)| {
+ let copied = scratch.join(&name).join(bundle);
+ copy(&version.join(bundle), &copied);
+ let doc: serde_json::Value =
+ serde_json::from_str(&fs::read_to_string(copied.join("doc.json")).unwrap()).unwrap();
+ formats.push(doc["format"].as_str().unwrap_or_default().to_string());
+ let now = hashes(&copied);
+ frames.iter().for_each(|(frame, digest)| {
+ let key = (format!("{name}/{bundle}"), frame.clone());
+ let expected = accepted.get(&key).unwrap_or(digest);
+ if now.get(frame) != Some(expected) {
+ wrong.push(format!(
+ "{name}/{bundle} frame {frame}: was {expected}, now {}",
+ now.get(frame).map_or("missing", String::as_str)
+ ));
+ }
+ });
+ });
+ });
+ let _ = fs::remove_dir_all(&scratch);
+ assert!(
+ wrong.is_empty(),
+ "drawings from a release render differently (fix it, or list the change in tests/formats/accepted.txt and the release notes):\n{}",
+ wrong.join("\n")
+ );
+ assert!(
+ formats.iter().any(|f| f != klad_core::doc::FORMAT),
+ "an older format is among them, so a migration is opened: {formats:?}"
+ );
+}
diff --git a/docs/DESIGN.md b/docs/DESIGN.md
index 57e9575..16036bb 100644
--- a/docs/DESIGN.md
+++ b/docs/DESIGN.md
@@ -154,7 +154,7 @@ Committed: everything except `.cache/`. A fresh clone rebuilds the cache by repl
- **Masks.** `mask` is a paint layer kept under the layer it masks, with its own id, cels and stroke files (`strokes/<mask id>/<cel>.strokes`). Its alpha hides the layer: strokes and fills on the mask hide, the eraser shows the layer again, and an empty mask (or a frame without a mask cel) hides nothing. `visible: false` turns the mask off. A mask keeps opacity 1 and blend normal and has no mask or clip of its own. Paint, vector and group layers can have one. Internally a mask's layer path ends in `MASK`, so `locate`, `layer_at` and the history treat it as a layer.
- **Clipping.** `clip: true` shows a layer only where its base, the nearest layer below it in the same list without `clip`, has alpha. The base and the clipped layers above it draw as one group: each clipped layer blends onto the base with its own blend and opacity (masked by the base's alpha), then the group composites onto what is below with the base's blend and opacity, as in Photoshop with "blend clipped layers as group". A hidden base hides its clipped layers; the lowest layer of a list draws unclipped.
- **Lock alpha.** `lockAlpha: true` on a paint layer makes new strokes and fills land only where the layer already has alpha: they composite source-atop and leave alpha unchanged. The flag is recorded on each stroke and fill (stroke format 5), so turning it off later never changes what was drawn. An eraser stroke on a lock-alpha layer changes nothing (the editor refuses it).
-- `rev` increments on every write. `klad/1` (2026-11-06) is the first `.klad` format and starts clean: drawings from before it (`.draw` folders, `draw-anything/0` to `/9`, stroke files marked `DAST`) are refused on open with the reason and not converted (`migrate.rs` keeps the place where later migrations go). From here on a format change bumps the number and migrates older `.klad` drawings on open; history snapshots go through the same migration when undone. `klad/2` (2026-11-07) added IK (`ik` on skeletons and in poses); a `klad/1` drawing opens as it is, renamed. `klad/3` (2026-11-08) added `bone` on paint layers, attaching a layer to one bone; older drawings open as they are. `klad/4` (2026-11-08) moved skeletons to bones layers that any paint layer joins through `rig` (follow a bone, or bend); drawings from before open with their rigs dropped (Kevin's call: rigs were new and untested), their drawings kept. History patches never carry the change, because they are diffs of documents already migrated in memory.
+- `rev` increments on every write. `klad/1` (2026-11-06) is the first `.klad` format and starts clean: drawings from before it (`.draw` folders, `draw-anything/0` to `/9`, stroke files marked `DAST`) are refused on open with the reason and not converted (`migrate.rs` keeps the place where later migrations go). From here on a format change bumps the number and migrates older `.klad` drawings on open; history snapshots go through the same migration when undone. `klad/2` (2026-11-07) added IK (`ik` on skeletons and in poses); a `klad/1` drawing opens as it is, renamed. `klad/3` (2026-11-08) added `bone` on paint layers, attaching a layer to one bone; older drawings open as they are. `klad/4` (2026-11-08) moved skeletons to bones layers that any paint layer joins through `rig` (follow a bone, or bend); drawings from before open with their rigs dropped (Kevin's call: rigs were new and untested), their drawings kept. History patches never carry the change, because they are diffs of documents already migrated in memory. From 1.0 the format promise holds: every change migrates and nothing is dropped; `tests/formats/<version>/` keeps small copies of the samples saved by each release (`just formats <version>`, `packaging/formats.sh`) with each frame's hash, and `crates/cli/tests/formats.rs` opens every one with today's build and compares the renders. `tests/formats/pre-1.0/` holds the samples as built before 1.0 (five drawings in `klad/1` and `klad/4`).
### Edits
diff --git a/docs/format.md b/docs/format.md
index c03c57d..4f9b872 100644
--- a/docs/format.md
+++ b/docs/format.md
@@ -4,6 +4,8 @@ _Last updated: 2026-11-08 (format `klad/4`, stroke files `KLST` version 1, brush
A klad drawing is a folder whose name ends in `.klad`, called a bundle. This document describes everything in it, so that any program can read, write and make klad drawings. It is licensed under the MIT License (`LICENSE-MIT`), unlike klad itself.
+From klad 1.0 on, a drawing made by any release opens in every later one with nothing lost: a format change adds a migration that converts, never drops.
+
klad is the reference: when this text and klad's renders disagree, klad is right and this text is wrong. The data is exact (every key, every byte); how pixels come out of it is described as far as a reader needs to draw a faithful approximation, not to match klad's renders bit for bit.
## The folder
diff --git a/justfile b/justfile
index 87fd018..ded8629 100644
--- a/justfile
+++ b/justfile
@@ -40,6 +40,9 @@ itch-mac:
icon: compile
KLAD={{klad}} bash packaging/icon/build.sh
+formats version: compile
+ bash packaging/formats.sh {{klad}} {{version}}
+
reference: compile
{{klad}} reference > docs/cli.md
diff --git a/packaging/formats.sh b/packaging/formats.sh
new file mode 100755
index 0000000..41fc827
--- /dev/null
+++ b/packaging/formats.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+set -euo pipefail
+root="$(cd "$(dirname "$0")/.." && pwd)"
+klad="${1:?give the klad binary of the release}"
+version="${2:?give the version, as in tests/formats/<version>}"
+dest="$root/tests/formats/$version"
+if [ -e "$dest" ]; then
+ echo "$dest is there already: a saved version never changes" >&2
+ exit 1
+fi
+python="$(command -v python3 || command -v python)"
+"$python" - "$root/samples" "$dest" "$klad" <<'PY'
+import pathlib, shutil, subprocess, sys
+src, dest, klad = pathlib.Path(sys.argv[1]), pathlib.Path(sys.argv[2]), sys.argv[3]
+names = ["ink-shapes", "lantern", "bounce", "creature", "rig"]
+missing = [n for n in names if not (src / n / f"{n}.klad" / "doc.json").is_file()]
+if missing:
+ sys.exit(f"build the samples first (just samples): {', '.join(missing)} missing")
+dest.mkdir(parents=True)
+lines = []
+for name in names:
+ bundle = src / name / f"{name}.klad"
+ shutil.copytree(bundle, dest / bundle.name, ignore=shutil.ignore_patterns(".cache"))
+ done = subprocess.run([klad, "hash", str(dest / bundle.name), "--all", "--no-cache"], capture_output=True, text=True)
+ if done.returncode != 0:
+ sys.exit(f"klad hash {bundle.name} failed:\n{done.stderr}")
+ shutil.rmtree(dest / bundle.name / ".cache", ignore_errors=True)
+ lines += [f"{bundle.name} {frame} {digest}" for _, frame, digest in (l.split() for l in done.stdout.splitlines())]
+(dest / "hashes.txt").write_text("\n".join(lines) + "\n")
+PY
+echo "$dest"
diff --git a/tests/formats/pre-1.0/bounce.klad/.gitignore b/tests/formats/pre-1.0/bounce.klad/.gitignore
new file mode 100644
index 0000000..ceddaa3
--- /dev/null
+++ b/tests/formats/pre-1.0/bounce.klad/.gitignore
@@ -0,0 +1 @@
+.cache/
diff --git a/tests/formats/pre-1.0/bounce.klad/brushes/ink.json b/tests/formats/pre-1.0/bounce.klad/brushes/ink.json
new file mode 100644
index 0000000..a003c7d
--- /dev/null
+++ b/tests/formats/pre-1.0/bounce.klad/brushes/ink.json
@@ -0,0 +1,24 @@
+{
+ "format": "klad-brush/1",
+ "name": "Inking pen",
+ "tip": {
+ "round": {
+ "hardness": 0.92
+ }
+ },
+ "spacing": 0.04,
+ "dynamics": {
+ "size": {
+ "pressure": {
+ "min": 0.06,
+ "gamma": 1.5
+ }
+ }
+ },
+ "taper": [
+ 10.0,
+ 24.0
+ ],
+ "stabilizer": 24.0,
+ "smoothing": 12.0
+}
diff --git a/tests/formats/pre-1.0/bounce.klad/doc.json b/tests/formats/pre-1.0/bounce.klad/doc.json
new file mode 100644
index 0000000..0b0eead
--- /dev/null
+++ b/tests/formats/pre-1.0/bounce.klad/doc.json
@@ -0,0 +1,283 @@
+{
+ "format": "klad/1",
+ "rev": 3,
+ "canvas": {
+ "width": 1024,
+ "height": 768,
+ "background": "#f4efe6"
+ },
+ "timeline": {
+ "fps": 12,
+ "frames": 20,
+ "clips": [
+ {
+ "name": "bounce",
+ "from": 0,
+ "to": 14,
+ "loop": true
+ },
+ {
+ "name": "rest",
+ "from": 15,
+ "to": 19,
+ "loop": false,
+ "fps": 6
+ }
+ ]
+ },
+ "palette": [
+ {
+ "color": "#1d1a22",
+ "name": "ink"
+ },
+ {
+ "color": "#d8543c",
+ "name": "red"
+ },
+ {
+ "color": "#f2e3c4",
+ "name": "cream"
+ },
+ {
+ "color": "#cdb58f",
+ "name": "ground"
+ },
+ {
+ "color": "#3a3046",
+ "name": "shade"
+ }
+ ],
+ "layers": [
+ {
+ "id": "floor",
+ "name": "floor",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "floor0",
+ "frame": 0
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true
+ },
+ {
+ "id": "shadow",
+ "name": "shadow",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "shadow0",
+ "frame": 0,
+ "hold": 2
+ },
+ {
+ "id": "shadow2",
+ "frame": 2,
+ "hold": 2
+ },
+ {
+ "id": "shadow4",
+ "frame": 4,
+ "hold": 1
+ },
+ {
+ "id": "shadow5",
+ "frame": 5,
+ "hold": 1
+ },
+ {
+ "id": "shadow6",
+ "frame": 6,
+ "hold": 1
+ },
+ {
+ "id": "shadow7",
+ "frame": 7,
+ "hold": 1
+ },
+ {
+ "id": "shadow8",
+ "frame": 8,
+ "hold": 1
+ },
+ {
+ "id": "shadow9",
+ "frame": 9,
+ "hold": 1
+ },
+ {
+ "id": "shadow10",
+ "frame": 10,
+ "hold": 1
+ },
+ {
+ "id": "shadow11",
+ "frame": 11,
+ "hold": 2
+ },
+ {
+ "id": "shadow13",
+ "frame": 13,
+ "hold": 2
+ },
+ {
+ "id": "shadow15",
+ "frame": 15,
+ "hold": 5,
+ "link": "shadow0"
+ }
+ ],
+ "opacity": 0.45,
+ "blend": "multiply",
+ "visible": true
+ },
+ {
+ "id": "colour",
+ "name": "colour",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "colour0",
+ "frame": 0,
+ "hold": 2
+ },
+ {
+ "id": "colour2",
+ "frame": 2,
+ "hold": 2
+ },
+ {
+ "id": "colour4",
+ "frame": 4,
+ "hold": 1
+ },
+ {
+ "id": "colour5",
+ "frame": 5,
+ "hold": 1
+ },
+ {
+ "id": "colour6",
+ "frame": 6,
+ "hold": 1
+ },
+ {
+ "id": "colour7",
+ "frame": 7,
+ "hold": 1
+ },
+ {
+ "id": "colour8",
+ "frame": 8,
+ "hold": 1
+ },
+ {
+ "id": "colour9",
+ "frame": 9,
+ "hold": 1
+ },
+ {
+ "id": "colour10",
+ "frame": 10,
+ "hold": 1
+ },
+ {
+ "id": "colour11",
+ "frame": 11,
+ "hold": 2
+ },
+ {
+ "id": "colour13",
+ "frame": 13,
+ "hold": 2
+ },
+ {
+ "id": "colour15",
+ "frame": 15,
+ "hold": 5,
+ "link": "colour0"
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true
+ },
+ {
+ "id": "lines",
+ "name": "lines",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "lines0",
+ "frame": 0,
+ "hold": 2
+ },
+ {
+ "id": "lines2",
+ "frame": 2,
+ "hold": 2
+ },
+ {
+ "id": "lines4",
+ "frame": 4,
+ "hold": 1
+ },
+ {
+ "id": "lines5",
+ "frame": 5,
+ "hold": 1
+ },
+ {
+ "id": "lines6",
+ "frame": 6,
+ "hold": 1
+ },
+ {
+ "id": "lines7",
+ "frame": 7,
+ "hold": 1
+ },
+ {
+ "id": "lines8",
+ "frame": 8,
+ "hold": 1
+ },
+ {
+ "id": "lines9",
+ "frame": 9,
+ "hold": 1
+ },
+ {
+ "id": "lines10",
+ "frame": 10,
+ "hold": 1
+ },
+ {
+ "id": "lines11",
+ "frame": 11,
+ "hold": 2
+ },
+ {
+ "id": "lines13",
+ "frame": 13,
+ "hold": 2
+ },
+ {
+ "id": "lines15",
+ "frame": 15,
+ "hold": 5,
+ "link": "lines0"
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true
+ }
+ ],
+ "export": {
+ "godot": "bounce-godot"
+ },
+ "nextId": 0
+}
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour0.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour0.strokes
new file mode 100644
index 0000000..586b7ae
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour0.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour10.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour10.strokes
new file mode 100644
index 0000000..af3d4f5
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour10.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour11.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour11.strokes
new file mode 100644
index 0000000..1e5ea38
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour11.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour13.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour13.strokes
new file mode 100644
index 0000000..6476450
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour13.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour2.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour2.strokes
new file mode 100644
index 0000000..484568e
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour2.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour4.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour4.strokes
new file mode 100644
index 0000000..2b3e313
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour4.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour5.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour5.strokes
new file mode 100644
index 0000000..59d66e7
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour5.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour6.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour6.strokes
new file mode 100644
index 0000000..39a5adf
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour6.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour7.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour7.strokes
new file mode 100644
index 0000000..5e267e1
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour7.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour8.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour8.strokes
new file mode 100644
index 0000000..5516376
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour8.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour9.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour9.strokes
new file mode 100644
index 0000000..43d3eb1
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/colour/colour9.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/floor/floor0.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/floor/floor0.strokes
new file mode 100644
index 0000000..d90451a
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/floor/floor0.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines0.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines0.strokes
new file mode 100644
index 0000000..b8594dc
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines0.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines10.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines10.strokes
new file mode 100644
index 0000000..cc0ff2a
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines10.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines11.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines11.strokes
new file mode 100644
index 0000000..8d7f701
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines11.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines13.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines13.strokes
new file mode 100644
index 0000000..1839c25
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines13.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines2.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines2.strokes
new file mode 100644
index 0000000..a40223a
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines2.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines4.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines4.strokes
new file mode 100644
index 0000000..cc7c08b
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines4.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines5.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines5.strokes
new file mode 100644
index 0000000..55633f8
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines5.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines6.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines6.strokes
new file mode 100644
index 0000000..8788a6b
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines6.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines7.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines7.strokes
new file mode 100644
index 0000000..2f8a75a
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines7.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines8.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines8.strokes
new file mode 100644
index 0000000..6ca1eed
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines8.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines9.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines9.strokes
new file mode 100644
index 0000000..9547fc8
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/lines/lines9.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow0.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow0.strokes
new file mode 100644
index 0000000..eba1c27
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow0.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow10.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow10.strokes
new file mode 100644
index 0000000..fdc3a7b
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow10.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow11.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow11.strokes
new file mode 100644
index 0000000..4f0e4a8
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow11.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow13.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow13.strokes
new file mode 100644
index 0000000..729434c
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow13.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow2.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow2.strokes
new file mode 100644
index 0000000..06845d8
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow2.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow4.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow4.strokes
new file mode 100644
index 0000000..6636687
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow4.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow5.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow5.strokes
new file mode 100644
index 0000000..9328f0e
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow5.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow6.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow6.strokes
new file mode 100644
index 0000000..83405fe
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow6.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow7.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow7.strokes
new file mode 100644
index 0000000..961b772
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow7.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow8.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow8.strokes
new file mode 100644
index 0000000..a9cdc76
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow8.strokes differ
diff --git a/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow9.strokes b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow9.strokes
new file mode 100644
index 0000000..78969b5
Binary files /dev/null and b/tests/formats/pre-1.0/bounce.klad/strokes/shadow/shadow9.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/.gitignore b/tests/formats/pre-1.0/creature.klad/.gitignore
new file mode 100644
index 0000000..ceddaa3
--- /dev/null
+++ b/tests/formats/pre-1.0/creature.klad/.gitignore
@@ -0,0 +1 @@
+.cache/
diff --git a/tests/formats/pre-1.0/creature.klad/brushes/ink.json b/tests/formats/pre-1.0/creature.klad/brushes/ink.json
new file mode 100644
index 0000000..a003c7d
--- /dev/null
+++ b/tests/formats/pre-1.0/creature.klad/brushes/ink.json
@@ -0,0 +1,24 @@
+{
+ "format": "klad-brush/1",
+ "name": "Inking pen",
+ "tip": {
+ "round": {
+ "hardness": 0.92
+ }
+ },
+ "spacing": 0.04,
+ "dynamics": {
+ "size": {
+ "pressure": {
+ "min": 0.06,
+ "gamma": 1.5
+ }
+ }
+ },
+ "taper": [
+ 10.0,
+ 24.0
+ ],
+ "stabilizer": 24.0,
+ "smoothing": 12.0
+}
diff --git a/tests/formats/pre-1.0/creature.klad/doc.json b/tests/formats/pre-1.0/creature.klad/doc.json
new file mode 100644
index 0000000..99a522c
--- /dev/null
+++ b/tests/formats/pre-1.0/creature.klad/doc.json
@@ -0,0 +1,1232 @@
+{
+ "format": "klad/1",
+ "rev": 14,
+ "canvas": {
+ "width": 1024,
+ "height": 1024,
+ "background": "#e9e4d8"
+ },
+ "timeline": {
+ "fps": 12,
+ "frames": 28,
+ "origin": [
+ 512.0,
+ 820.0
+ ],
+ "clips": [
+ {
+ "name": "idle",
+ "from": 0,
+ "to": 11,
+ "loop": true
+ },
+ {
+ "name": "walk",
+ "from": 12,
+ "to": 27,
+ "loop": true
+ }
+ ]
+ },
+ "palette": [
+ {
+ "color": "#17161d",
+ "name": "ink"
+ },
+ {
+ "color": "#5f7d4c",
+ "name": "moss"
+ },
+ {
+ "color": "#6b5643",
+ "name": "bark"
+ },
+ {
+ "color": "#20263a",
+ "name": "dusk"
+ },
+ {
+ "color": "#bff2ff",
+ "name": "glow"
+ },
+ {
+ "color": "#8dbb6a",
+ "name": "leaf"
+ },
+ {
+ "color": "#45372c",
+ "name": "root"
+ },
+ {
+ "color": "#2a211b",
+ "name": "far"
+ },
+ {
+ "color": "#44405a",
+ "name": "shade"
+ },
+ {
+ "color": "#eef6cf",
+ "name": "rim"
+ },
+ {
+ "color": "#3a3428",
+ "name": "ground"
+ }
+ ],
+ "layers": [
+ {
+ "id": "shadow",
+ "name": "shadow",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "shadow0",
+ "frame": 0,
+ "hold": 3,
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ },
+ {
+ "id": "c1",
+ "frame": 3,
+ "hold": 3,
+ "tween": {
+ "from": "shadow0",
+ "to": "shadow2",
+ "t": 0.5,
+ "made": "51876540056fce64"
+ },
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ },
+ {
+ "id": "shadow2",
+ "frame": 6,
+ "hold": 3,
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ },
+ {
+ "id": "c31",
+ "frame": 9,
+ "link": "c1"
+ },
+ {
+ "id": "shadow3",
+ "frame": 12,
+ "hold": 2,
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ },
+ {
+ "id": "c7",
+ "frame": 14,
+ "hold": 2,
+ "tween": {
+ "from": "shadow3",
+ "to": "shadow5",
+ "t": 0.5,
+ "made": "8402b5e2b6265768"
+ },
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ },
+ {
+ "id": "shadow5",
+ "frame": 16,
+ "hold": 2,
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ },
+ {
+ "id": "c13",
+ "frame": 18,
+ "hold": 2,
+ "tween": {
+ "from": "shadow5",
+ "to": "shadow7",
+ "t": 0.5,
+ "made": "9be79d31b545c86a"
+ },
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ },
+ {
+ "id": "shadow7",
+ "frame": 20,
+ "hold": 2,
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ },
+ {
+ "id": "c19",
+ "frame": 22,
+ "hold": 2,
+ "tween": {
+ "from": "shadow7",
+ "to": "shadow9",
+ "t": 0.5,
+ "made": "8402b5e2b6265768"
+ },
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ },
+ {
+ "id": "shadow9",
+ "frame": 24,
+ "hold": 2,
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ },
+ {
+ "id": "c25",
+ "frame": 26,
+ "hold": 2,
+ "tween": {
+ "from": "shadow9",
+ "to": "shadow3",
+ "t": 0.5,
+ "made": "9be79d31b545c86a"
+ },
+ "parts": {
+ "shadow": [
+ 1
+ ]
+ }
+ }
+ ],
+ "opacity": 0.35,
+ "blend": "multiply",
+ "visible": true
+ },
+ {
+ "id": "far",
+ "name": "far",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "far0",
+ "frame": 0,
+ "hold": 3,
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c2",
+ "frame": 3,
+ "hold": 3,
+ "tween": {
+ "from": "far0",
+ "to": "far2",
+ "t": 0.5,
+ "made": "9a57de971433b686"
+ },
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "far2",
+ "frame": 6,
+ "hold": 3,
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c32",
+ "frame": 9,
+ "link": "c2"
+ },
+ {
+ "id": "far3",
+ "frame": 12,
+ "hold": 2,
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c8",
+ "frame": 14,
+ "hold": 2,
+ "tween": {
+ "from": "far3",
+ "to": "far5",
+ "t": 0.5,
+ "made": "9de874eaef709c38"
+ },
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "far5",
+ "frame": 16,
+ "hold": 2,
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c14",
+ "frame": 18,
+ "hold": 2,
+ "tween": {
+ "from": "far5",
+ "to": "far7",
+ "t": 0.5,
+ "made": "3b12d69187412608"
+ },
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "far7",
+ "frame": 20,
+ "hold": 2,
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c20",
+ "frame": 22,
+ "hold": 2,
+ "tween": {
+ "from": "far7",
+ "to": "far9",
+ "t": 0.5,
+ "made": "c82c79695126e791"
+ },
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "far9",
+ "frame": 24,
+ "hold": 2,
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c26",
+ "frame": 26,
+ "hold": 2,
+ "tween": {
+ "from": "far9",
+ "to": "far3",
+ "t": 0.5,
+ "made": "a81840c2ee9493e3"
+ },
+ "parts": {
+ "far leg": [
+ 1,
+ 2
+ ]
+ }
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true
+ },
+ {
+ "id": "colour",
+ "name": "colour",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "colour0",
+ "frame": 0,
+ "hold": 3
+ },
+ {
+ "id": "c3",
+ "frame": 3,
+ "hold": 3,
+ "tween": {
+ "from": "colour0",
+ "to": "colour2",
+ "t": 0.5,
+ "made": "523ef75dc9e8a1b8"
+ }
+ },
+ {
+ "id": "colour2",
+ "frame": 6,
+ "hold": 3
+ },
+ {
+ "id": "c33",
+ "frame": 9,
+ "link": "c3"
+ },
+ {
+ "id": "colour3",
+ "frame": 12,
+ "hold": 2
+ },
+ {
+ "id": "c9",
+ "frame": 14,
+ "hold": 2,
+ "tween": {
+ "from": "colour3",
+ "to": "colour5",
+ "t": 0.5,
+ "made": "2513ae3a361ceb7d"
+ }
+ },
+ {
+ "id": "colour5",
+ "frame": 16,
+ "hold": 2
+ },
+ {
+ "id": "c15",
+ "frame": 18,
+ "hold": 2,
+ "tween": {
+ "from": "colour5",
+ "to": "colour7",
+ "t": 0.5,
+ "made": "057ebcd7e20342b6"
+ }
+ },
+ {
+ "id": "colour7",
+ "frame": 20,
+ "hold": 2
+ },
+ {
+ "id": "c21",
+ "frame": 22,
+ "hold": 2,
+ "tween": {
+ "from": "colour7",
+ "to": "colour9",
+ "t": 0.5,
+ "made": "ab1e4dbce1824d12"
+ }
+ },
+ {
+ "id": "colour9",
+ "frame": 24,
+ "hold": 2
+ },
+ {
+ "id": "c27",
+ "frame": 26,
+ "hold": 2,
+ "tween": {
+ "from": "colour9",
+ "to": "colour3",
+ "t": 0.5,
+ "made": "dcb93ea0027cc463"
+ }
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true
+ },
+ {
+ "id": "shade",
+ "name": "shade",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "shade0",
+ "frame": 0,
+ "hold": 3,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c4",
+ "frame": 3,
+ "hold": 3,
+ "tween": {
+ "from": "shade0",
+ "to": "shade2",
+ "t": 0.5,
+ "made": "936db3508f9a4a45"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "shade2",
+ "frame": 6,
+ "hold": 3,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c34",
+ "frame": 9,
+ "link": "c4"
+ },
+ {
+ "id": "shade3",
+ "frame": 12,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c10",
+ "frame": 14,
+ "hold": 2,
+ "tween": {
+ "from": "shade3",
+ "to": "shade5",
+ "t": 0.5,
+ "made": "f4d8a93e9544af42"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "shade5",
+ "frame": 16,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c16",
+ "frame": 18,
+ "hold": 2,
+ "tween": {
+ "from": "shade5",
+ "to": "shade7",
+ "t": 0.5,
+ "made": "9f9393a57a8d0f7c"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "shade7",
+ "frame": 20,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c22",
+ "frame": 22,
+ "hold": 2,
+ "tween": {
+ "from": "shade7",
+ "to": "shade9",
+ "t": 0.5,
+ "made": "ab5384bce1e26bd5"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "shade9",
+ "frame": 24,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c28",
+ "frame": 26,
+ "hold": 2,
+ "tween": {
+ "from": "shade9",
+ "to": "shade3",
+ "t": 0.5,
+ "made": "ac7773f64002b1a3"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ }
+ ],
+ "opacity": 0.7,
+ "blend": "multiply",
+ "visible": true,
+ "clip": true
+ },
+ {
+ "id": "rim",
+ "name": "rim",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "rim0",
+ "frame": 0,
+ "hold": 3,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c5",
+ "frame": 3,
+ "hold": 3,
+ "tween": {
+ "from": "rim0",
+ "to": "rim2",
+ "t": 0.5,
+ "made": "5823a107e28df127"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "rim2",
+ "frame": 6,
+ "hold": 3,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c35",
+ "frame": 9,
+ "link": "c5"
+ },
+ {
+ "id": "rim3",
+ "frame": 12,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c11",
+ "frame": 14,
+ "hold": 2,
+ "tween": {
+ "from": "rim3",
+ "to": "rim5",
+ "t": 0.5,
+ "made": "ec0d50f76fe8de78"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "rim5",
+ "frame": 16,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c17",
+ "frame": 18,
+ "hold": 2,
+ "tween": {
+ "from": "rim5",
+ "to": "rim7",
+ "t": 0.5,
+ "made": "6d74b146ec025c82"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "rim7",
+ "frame": 20,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c23",
+ "frame": 22,
+ "hold": 2,
+ "tween": {
+ "from": "rim7",
+ "to": "rim9",
+ "t": 0.5,
+ "made": "7c0968407bd25413"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "rim9",
+ "frame": 24,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ },
+ {
+ "id": "c29",
+ "frame": 26,
+ "hold": 2,
+ "tween": {
+ "from": "rim9",
+ "to": "rim3",
+ "t": 0.5,
+ "made": "e5ebab34c8860c82"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2
+ ]
+ }
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true,
+ "clip": true
+ },
+ {
+ "id": "lines",
+ "name": "lines",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "lines0",
+ "frame": 0,
+ "hold": 3,
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 11,
+ 12
+ ],
+ "near leg": [
+ 13
+ ],
+ "second leaf": [
+ 14,
+ 15
+ ],
+ "sprout": [
+ 10
+ ]
+ }
+ },
+ {
+ "id": "c6",
+ "frame": 3,
+ "hold": 3,
+ "tween": {
+ "from": "lines0",
+ "to": "lines2",
+ "t": 0.5,
+ "made": "0d0f8550776912a7"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 11,
+ 12
+ ],
+ "near leg": [
+ 13
+ ],
+ "second leaf": [
+ 14,
+ 15
+ ],
+ "sprout": [
+ 10
+ ]
+ }
+ },
+ {
+ "id": "lines2",
+ "frame": 6,
+ "hold": 3,
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 11,
+ 12
+ ],
+ "near leg": [
+ 13
+ ],
+ "second leaf": [
+ 14,
+ 15
+ ],
+ "sprout": [
+ 10
+ ]
+ }
+ },
+ {
+ "id": "c36",
+ "frame": 9,
+ "link": "c6"
+ },
+ {
+ "id": "lines3",
+ "frame": 12,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 11,
+ 12
+ ],
+ "near leg": [
+ 13
+ ],
+ "second leaf": [
+ 14,
+ 15
+ ],
+ "sprout": [
+ 10
+ ]
+ }
+ },
+ {
+ "id": "c12",
+ "frame": 14,
+ "hold": 2,
+ "tween": {
+ "from": "lines3",
+ "to": "lines5",
+ "t": 0.5,
+ "made": "42f00a03cd54fa2f"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 11,
+ 12
+ ],
+ "near leg": [
+ 13
+ ],
+ "second leaf": [
+ 14,
+ 15
+ ],
+ "sprout": [
+ 10
+ ]
+ }
+ },
+ {
+ "id": "lines5",
+ "frame": 16,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 11,
+ 12
+ ],
+ "near leg": [
+ 13
+ ],
+ "second leaf": [
+ 14,
+ 15
+ ],
+ "sprout": [
+ 10
+ ]
+ }
+ },
+ {
+ "id": "c18",
+ "frame": 18,
+ "hold": 2,
+ "tween": {
+ "from": "lines5",
+ "to": "lines7",
+ "t": 0.5,
+ "made": "c3be5d546383cbc0"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 11,
+ 12
+ ],
+ "near leg": [
+ 13
+ ],
+ "second leaf": [
+ 14,
+ 15
+ ],
+ "sprout": [
+ 10
+ ]
+ }
+ },
+ {
+ "id": "lines7",
+ "frame": 20,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 13,
+ 14
+ ],
+ "near leg": [
+ 15
+ ],
+ "second leaf": [
+ 10,
+ 11
+ ],
+ "sprout": [
+ 12
+ ]
+ }
+ },
+ {
+ "id": "c24",
+ "frame": 22,
+ "hold": 2,
+ "tween": {
+ "from": "lines7",
+ "to": "lines9",
+ "t": 0.5,
+ "made": "c4d4b287d6437b2f"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 13,
+ 14
+ ],
+ "near leg": [
+ 15
+ ],
+ "second leaf": [
+ 10,
+ 11
+ ],
+ "sprout": [
+ 12
+ ]
+ }
+ },
+ {
+ "id": "lines9",
+ "frame": 24,
+ "hold": 2,
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 13,
+ 14
+ ],
+ "near leg": [
+ 15
+ ],
+ "second leaf": [
+ 10,
+ 11
+ ],
+ "sprout": [
+ 12
+ ]
+ }
+ },
+ {
+ "id": "c30",
+ "frame": 26,
+ "hold": 2,
+ "tween": {
+ "from": "lines9",
+ "to": "lines3",
+ "t": 0.5,
+ "made": "dfa4052212c8d99f"
+ },
+ "parts": {
+ "body": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "leaf": [
+ 13,
+ 14
+ ],
+ "near leg": [
+ 15
+ ],
+ "second leaf": [
+ 10,
+ 11
+ ],
+ "sprout": [
+ 12
+ ]
+ }
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true
+ }
+ ],
+ "nextId": 36
+}
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/c15.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/c15.strokes
new file mode 100644
index 0000000..8402aa4
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/c15.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/c21.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/c21.strokes
new file mode 100644
index 0000000..9cf5b03
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/c21.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/c27.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/c27.strokes
new file mode 100644
index 0000000..7eb0a81
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/c27.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/c3.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/c3.strokes
new file mode 100644
index 0000000..422439f
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/c3.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/c9.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/c9.strokes
new file mode 100644
index 0000000..b3530d7
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/c9.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/colour0.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour0.strokes
new file mode 100644
index 0000000..14add3e
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour0.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/colour2.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour2.strokes
new file mode 100644
index 0000000..b2df384
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour2.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/colour3.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour3.strokes
new file mode 100644
index 0000000..296d51e
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour3.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/colour5.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour5.strokes
new file mode 100644
index 0000000..7ce5c2b
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour5.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/colour7.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour7.strokes
new file mode 100644
index 0000000..f364f9e
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour7.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/colour/colour9.strokes b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour9.strokes
new file mode 100644
index 0000000..f522199
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/colour/colour9.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/c14.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/c14.strokes
new file mode 100644
index 0000000..9c39aaf
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/c14.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/c2.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/c2.strokes
new file mode 100644
index 0000000..c1998e5
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/c2.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/c20.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/c20.strokes
new file mode 100644
index 0000000..ee9f863
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/c20.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/c26.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/c26.strokes
new file mode 100644
index 0000000..3629138
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/c26.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/c8.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/c8.strokes
new file mode 100644
index 0000000..aa6c12d
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/c8.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/far0.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/far0.strokes
new file mode 100644
index 0000000..97271c9
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/far0.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/far2.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/far2.strokes
new file mode 100644
index 0000000..c9fc262
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/far2.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/far3.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/far3.strokes
new file mode 100644
index 0000000..11e19d9
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/far3.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/far5.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/far5.strokes
new file mode 100644
index 0000000..075d405
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/far5.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/far7.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/far7.strokes
new file mode 100644
index 0000000..cb28d06
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/far7.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/far/far9.strokes b/tests/formats/pre-1.0/creature.klad/strokes/far/far9.strokes
new file mode 100644
index 0000000..71077c7
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/far/far9.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/c12.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/c12.strokes
new file mode 100644
index 0000000..efed380
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/c12.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/c18.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/c18.strokes
new file mode 100644
index 0000000..f331bc4
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/c18.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/c24.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/c24.strokes
new file mode 100644
index 0000000..7f39ed7
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/c24.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/c30.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/c30.strokes
new file mode 100644
index 0000000..fee7ca7
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/c30.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/c6.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/c6.strokes
new file mode 100644
index 0000000..f563b71
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/c6.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/lines0.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines0.strokes
new file mode 100644
index 0000000..33ed82b
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines0.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/lines2.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines2.strokes
new file mode 100644
index 0000000..045916b
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines2.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/lines3.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines3.strokes
new file mode 100644
index 0000000..8487748
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines3.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/lines5.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines5.strokes
new file mode 100644
index 0000000..6fee715
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines5.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/lines7.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines7.strokes
new file mode 100644
index 0000000..cc85fa6
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines7.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/lines/lines9.strokes b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines9.strokes
new file mode 100644
index 0000000..9e87ce6
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/lines/lines9.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/c11.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/c11.strokes
new file mode 100644
index 0000000..928dc20
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/c11.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/c17.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/c17.strokes
new file mode 100644
index 0000000..7e8effc
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/c17.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/c23.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/c23.strokes
new file mode 100644
index 0000000..83be637
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/c23.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/c29.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/c29.strokes
new file mode 100644
index 0000000..8ba13d0
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/c29.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/c5.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/c5.strokes
new file mode 100644
index 0000000..ca1999b
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/c5.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/rim0.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim0.strokes
new file mode 100644
index 0000000..34d272f
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim0.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/rim2.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim2.strokes
new file mode 100644
index 0000000..7c60ed2
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim2.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/rim3.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim3.strokes
new file mode 100644
index 0000000..328c9ce
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim3.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/rim5.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim5.strokes
new file mode 100644
index 0000000..1b00e6c
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim5.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/rim7.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim7.strokes
new file mode 100644
index 0000000..62790d4
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim7.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/rim/rim9.strokes b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim9.strokes
new file mode 100644
index 0000000..2b2e0c1
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/rim/rim9.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/c10.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/c10.strokes
new file mode 100644
index 0000000..81b8152
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/c10.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/c16.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/c16.strokes
new file mode 100644
index 0000000..957e267
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/c16.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/c22.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/c22.strokes
new file mode 100644
index 0000000..338f04d
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/c22.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/c28.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/c28.strokes
new file mode 100644
index 0000000..c3a8d1e
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/c28.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/c4.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/c4.strokes
new file mode 100644
index 0000000..3e9deed
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/c4.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/shade0.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade0.strokes
new file mode 100644
index 0000000..8029164
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade0.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/shade2.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade2.strokes
new file mode 100644
index 0000000..6567fb7
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade2.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/shade3.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade3.strokes
new file mode 100644
index 0000000..41bbbac
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade3.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/shade5.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade5.strokes
new file mode 100644
index 0000000..c78732f
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade5.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/shade7.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade7.strokes
new file mode 100644
index 0000000..0d90123
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade7.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shade/shade9.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade9.strokes
new file mode 100644
index 0000000..f10f35b
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shade/shade9.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/c1.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/c1.strokes
new file mode 100644
index 0000000..37f2bf3
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/c1.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/c13.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/c13.strokes
new file mode 100644
index 0000000..53c4a97
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/c13.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/c19.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/c19.strokes
new file mode 100644
index 0000000..07028fb
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/c19.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/c25.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/c25.strokes
new file mode 100644
index 0000000..53c4a97
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/c25.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/c7.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/c7.strokes
new file mode 100644
index 0000000..07028fb
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/c7.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow0.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow0.strokes
new file mode 100644
index 0000000..2265e9c
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow0.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow2.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow2.strokes
new file mode 100644
index 0000000..da697cf
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow2.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow3.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow3.strokes
new file mode 100644
index 0000000..1365486
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow3.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow5.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow5.strokes
new file mode 100644
index 0000000..357683e
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow5.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow7.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow7.strokes
new file mode 100644
index 0000000..1365486
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow7.strokes differ
diff --git a/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow9.strokes b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow9.strokes
new file mode 100644
index 0000000..357683e
Binary files /dev/null and b/tests/formats/pre-1.0/creature.klad/strokes/shadow/shadow9.strokes differ
diff --git a/tests/formats/pre-1.0/hashes.txt b/tests/formats/pre-1.0/hashes.txt
new file mode 100644
index 0000000..673721b
--- /dev/null
+++ b/tests/formats/pre-1.0/hashes.txt
@@ -0,0 +1,74 @@
+ink-shapes.klad 0 b07dec3759237e67
+lantern.klad 0 33ee1d35d6b9be02
+bounce.klad 0 1af955f670db33d6
+bounce.klad 1 1af955f670db33d6
+bounce.klad 2 09288c2dcb7ce5e2
+bounce.klad 3 09288c2dcb7ce5e2
+bounce.klad 4 ae65a2e403f5344b
+bounce.klad 5 44e713c18e454862
+bounce.klad 6 4166149cb6f6dafa
+bounce.klad 7 a8481d7fb06d0c19
+bounce.klad 8 816a78cf81e094c0
+bounce.klad 9 11168b6bd786f71d
+bounce.klad 10 d588b339cb66c743
+bounce.klad 11 9e0015f04d963320
+bounce.klad 12 9e0015f04d963320
+bounce.klad 13 b668eac36047522e
+bounce.klad 14 b668eac36047522e
+bounce.klad 15 1af955f670db33d6
+bounce.klad 16 1af955f670db33d6
+bounce.klad 17 1af955f670db33d6
+bounce.klad 18 1af955f670db33d6
+bounce.klad 19 1af955f670db33d6
+creature.klad 0 024861ca501bfbdc
+creature.klad 1 024861ca501bfbdc
+creature.klad 2 024861ca501bfbdc
+creature.klad 3 38cc5275740afb21
+creature.klad 4 38cc5275740afb21
+creature.klad 5 38cc5275740afb21
+creature.klad 6 110d34724438407c
+creature.klad 7 110d34724438407c
+creature.klad 8 110d34724438407c
+creature.klad 9 38cc5275740afb21
+creature.klad 10 38cc5275740afb21
+creature.klad 11 38cc5275740afb21
+creature.klad 12 5cd698247aaae80d
+creature.klad 13 5cd698247aaae80d
+creature.klad 14 e5fadd096d52e644
+creature.klad 15 e5fadd096d52e644
+creature.klad 16 4a695ecfd122b407
+creature.klad 17 4a695ecfd122b407
+creature.klad 18 1c5eb691ccdc3060
+creature.klad 19 1c5eb691ccdc3060
+creature.klad 20 c921712ffd1448e6
+creature.klad 21 c921712ffd1448e6
+creature.klad 22 b6bb5f05b806f797
+creature.klad 23 b6bb5f05b806f797
+creature.klad 24 eb7a0936edd27674
+creature.klad 25 eb7a0936edd27674
+creature.klad 26 d086e8dd7c0e39fb
+creature.klad 27 d086e8dd7c0e39fb
+rig.klad 0 dd88b960fabb53f2
+rig.klad 1 747b038455ec00af
+rig.klad 2 529563acce8fd9e2
+rig.klad 3 f27a3acfd73fc46c
+rig.klad 4 f011641f8743c843
+rig.klad 5 4d58bc17220d3716
+rig.klad 6 7e24eb8e2f57a2cb
+rig.klad 7 440516ea60f63500
+rig.klad 8 9968b2cb74e67fcf
+rig.klad 9 05160057abd86140
+rig.klad 10 06e94b273547edee
+rig.klad 11 d6ea725f0c3be199
+rig.klad 12 72029418da9f050f
+rig.klad 13 94924aff162ba876
+rig.klad 14 351f321cf36055c1
+rig.klad 15 5cdfdfcc7fa09512
+rig.klad 16 c4d3fc74bd2ee841
+rig.klad 17 f7cdd41dacaab2ac
+rig.klad 18 b39658124c70d7bd
+rig.klad 19 3c7ed70074412572
+rig.klad 20 acbba1e18d90590e
+rig.klad 21 6fb2d05fa5369bb4
+rig.klad 22 aebfdaa46aa1d7d6
+rig.klad 23 ea78a659bff8e433
diff --git a/tests/formats/pre-1.0/ink-shapes.klad/.gitignore b/tests/formats/pre-1.0/ink-shapes.klad/.gitignore
new file mode 100644
index 0000000..ceddaa3
--- /dev/null
+++ b/tests/formats/pre-1.0/ink-shapes.klad/.gitignore
@@ -0,0 +1 @@
+.cache/
diff --git a/tests/formats/pre-1.0/ink-shapes.klad/brushes/ink.json b/tests/formats/pre-1.0/ink-shapes.klad/brushes/ink.json
new file mode 100644
index 0000000..a003c7d
--- /dev/null
+++ b/tests/formats/pre-1.0/ink-shapes.klad/brushes/ink.json
@@ -0,0 +1,24 @@
+{
+ "format": "klad-brush/1",
+ "name": "Inking pen",
+ "tip": {
+ "round": {
+ "hardness": 0.92
+ }
+ },
+ "spacing": 0.04,
+ "dynamics": {
+ "size": {
+ "pressure": {
+ "min": 0.06,
+ "gamma": 1.5
+ }
+ }
+ },
+ "taper": [
+ 10.0,
+ 24.0
+ ],
+ "stabilizer": 24.0,
+ "smoothing": 12.0
+}
diff --git a/tests/formats/pre-1.0/ink-shapes.klad/brushes/pencil.json b/tests/formats/pre-1.0/ink-shapes.klad/brushes/pencil.json
new file mode 100644
index 0000000..7436364
--- /dev/null
+++ b/tests/formats/pre-1.0/ink-shapes.klad/brushes/pencil.json
@@ -0,0 +1,31 @@
+{
+ "format": "klad-brush/1",
+ "name": "Pencil",
+ "tip": {
+ "round": {
+ "hardness": 0.6
+ }
+ },
+ "spacing": 0.1,
+ "flow": 0.55,
+ "dynamics": {
+ "size": {
+ "pressure": {
+ "min": 0.5
+ }
+ },
+ "flow": {
+ "pressure": {
+ "min": 0.15,
+ "gamma": 1.3
+ }
+ }
+ },
+ "grain": {
+ "paper": {
+ "seed": 11,
+ "feature": 2
+ },
+ "strength": 0.55
+ }
+}
diff --git a/tests/formats/pre-1.0/ink-shapes.klad/doc.json b/tests/formats/pre-1.0/ink-shapes.klad/doc.json
new file mode 100644
index 0000000..190a364
--- /dev/null
+++ b/tests/formats/pre-1.0/ink-shapes.klad/doc.json
@@ -0,0 +1,175 @@
+{
+ "format": "klad/1",
+ "rev": 2,
+ "canvas": {
+ "width": 960,
+ "height": 900,
+ "background": "#f4efe6"
+ },
+ "timeline": {
+ "fps": 12,
+ "frames": 1
+ },
+ "layers": [
+ {
+ "id": "sketch",
+ "name": "sketch",
+ "kind": "vector",
+ "cels": [
+ {
+ "id": "c1",
+ "frame": 0,
+ "nodes": [
+ {
+ "id": "circle0",
+ "type": "ellipse",
+ "cx": 0.0,
+ "cy": 0.0,
+ "rx": 70.0,
+ "ry": 70.0,
+ "transform": {
+ "x": 170.0,
+ "y": 120.0
+ }
+ },
+ {
+ "id": "box0",
+ "type": "rect",
+ "x": -70.0,
+ "y": -55.0,
+ "w": 140.0,
+ "h": 110.0,
+ "radius": 18.0,
+ "transform": {
+ "x": 170.0,
+ "y": 330.0
+ }
+ },
+ {
+ "id": "star0",
+ "type": "path",
+ "d": "M0 -80 L22 -26 L78 -24 L34 10 L50 66 L0 34 L-50 66 L-34 10 L-78 -24 L-22 -26 Z",
+ "transform": {
+ "x": 170.0,
+ "y": 540.0
+ }
+ },
+ {
+ "id": "blob0",
+ "type": "path",
+ "d": "M-60 10 C -70 -50 -10 -80 30 -60 C 80 -40 90 20 50 50 C 10 80 -50 70 -60 10 Z",
+ "transform": {
+ "x": 170.0,
+ "y": 750.0
+ }
+ },
+ {
+ "id": "circle1",
+ "type": "ellipse",
+ "cx": 0.0,
+ "cy": 0.0,
+ "rx": 70.0,
+ "ry": 70.0,
+ "transform": {
+ "x": 470.0,
+ "y": 120.0
+ }
+ },
+ {
+ "id": "box1",
+ "type": "rect",
+ "x": -70.0,
+ "y": -55.0,
+ "w": 140.0,
+ "h": 110.0,
+ "radius": 18.0,
+ "transform": {
+ "x": 470.0,
+ "y": 330.0
+ }
+ },
+ {
+ "id": "star1",
+ "type": "path",
+ "d": "M0 -80 L22 -26 L78 -24 L34 10 L50 66 L0 34 L-50 66 L-34 10 L-78 -24 L-22 -26 Z",
+ "transform": {
+ "x": 470.0,
+ "y": 540.0
+ }
+ },
+ {
+ "id": "blob1",
+ "type": "path",
+ "d": "M-60 10 C -70 -50 -10 -80 30 -60 C 80 -40 90 20 50 50 C 10 80 -50 70 -60 10 Z",
+ "transform": {
+ "x": 470.0,
+ "y": 750.0
+ }
+ },
+ {
+ "id": "circle2",
+ "type": "ellipse",
+ "cx": 0.0,
+ "cy": 0.0,
+ "rx": 70.0,
+ "ry": 70.0,
+ "transform": {
+ "x": 770.0,
+ "y": 120.0
+ }
+ },
+ {
+ "id": "box2",
+ "type": "rect",
+ "x": -70.0,
+ "y": -55.0,
+ "w": 140.0,
+ "h": 110.0,
+ "radius": 18.0,
+ "transform": {
+ "x": 770.0,
+ "y": 330.0
+ }
+ },
+ {
+ "id": "star2",
+ "type": "path",
+ "d": "M0 -80 L22 -26 L78 -24 L34 10 L50 66 L0 34 L-50 66 L-34 10 L-78 -24 L-22 -26 Z",
+ "transform": {
+ "x": 770.0,
+ "y": 540.0
+ }
+ },
+ {
+ "id": "blob2",
+ "type": "path",
+ "d": "M-60 10 C -70 -50 -10 -80 30 -60 C 80 -40 90 20 50 50 C 10 80 -50 70 -60 10 Z",
+ "transform": {
+ "x": 770.0,
+ "y": 750.0
+ }
+ }
+ ]
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": false
+ },
+ {
+ "id": "lines",
+ "name": "lines",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "c2",
+ "frame": 0
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true
+ }
+ ],
+ "nextId": 2
+}
diff --git a/tests/formats/pre-1.0/ink-shapes.klad/strokes/lines/c2.strokes b/tests/formats/pre-1.0/ink-shapes.klad/strokes/lines/c2.strokes
new file mode 100644
index 0000000..8f4362c
Binary files /dev/null and b/tests/formats/pre-1.0/ink-shapes.klad/strokes/lines/c2.strokes differ
diff --git a/tests/formats/pre-1.0/lantern.klad/.gitignore b/tests/formats/pre-1.0/lantern.klad/.gitignore
new file mode 100644
index 0000000..ceddaa3
--- /dev/null
+++ b/tests/formats/pre-1.0/lantern.klad/.gitignore
@@ -0,0 +1 @@
+.cache/
diff --git a/tests/formats/pre-1.0/lantern.klad/brushes/ink.json b/tests/formats/pre-1.0/lantern.klad/brushes/ink.json
new file mode 100644
index 0000000..a003c7d
--- /dev/null
+++ b/tests/formats/pre-1.0/lantern.klad/brushes/ink.json
@@ -0,0 +1,24 @@
+{
+ "format": "klad-brush/1",
+ "name": "Inking pen",
+ "tip": {
+ "round": {
+ "hardness": 0.92
+ }
+ },
+ "spacing": 0.04,
+ "dynamics": {
+ "size": {
+ "pressure": {
+ "min": 0.06,
+ "gamma": 1.5
+ }
+ }
+ },
+ "taper": [
+ 10.0,
+ 24.0
+ ],
+ "stabilizer": 24.0,
+ "smoothing": 12.0
+}
diff --git a/tests/formats/pre-1.0/lantern.klad/doc.json b/tests/formats/pre-1.0/lantern.klad/doc.json
new file mode 100644
index 0000000..9038ebb
--- /dev/null
+++ b/tests/formats/pre-1.0/lantern.klad/doc.json
@@ -0,0 +1,351 @@
+{
+ "format": "klad/1",
+ "rev": 2,
+ "canvas": {
+ "width": 1024,
+ "height": 1280
+ },
+ "timeline": {
+ "fps": 12,
+ "frames": 1
+ },
+ "palette": [
+ {
+ "color": "#15161c",
+ "name": "ink"
+ },
+ {
+ "color": "#3b4352",
+ "name": "iron"
+ },
+ {
+ "color": "#d3cab3",
+ "name": "bone"
+ },
+ {
+ "color": "#a9ecff",
+ "name": "glow"
+ },
+ {
+ "color": "#6b7584",
+ "name": "stone"
+ },
+ {
+ "color": "#4a5260",
+ "name": "stone dark"
+ },
+ {
+ "color": "#283039",
+ "name": "chain"
+ },
+ {
+ "color": "#56607e",
+ "name": "shadow"
+ },
+ {
+ "color": "#e2f5ff",
+ "name": "rim"
+ }
+ ],
+ "layers": [
+ {
+ "id": "sketch",
+ "name": "sketch",
+ "kind": "vector",
+ "cels": [
+ {
+ "id": "c1",
+ "frame": 0,
+ "nodes": [
+ {
+ "id": "post",
+ "type": "path",
+ "d": "M431 1088 C 419 950 451 760 435 600 C 419 470 425 380 449 330 C 481 260 600 250 646 300 C 668 328 674 362 664 392 L 650 388 C 658 366 654 338 636 318 C 600 280 506 286 488 336 C 466 384 462 470 478 600 C 494 760 466 950 474 1088 Z"
+ },
+ {
+ "id": "knob",
+ "type": "ellipse",
+ "cx": 657.0,
+ "cy": 392.0,
+ "rx": 10.0,
+ "ry": 10.0
+ },
+ {
+ "id": "edge-link",
+ "type": "path",
+ "d": "M649 419 C 649 415 655 415 655 419 L 654 436 C 654 440 648 440 648 436 Z"
+ },
+ {
+ "id": "bead",
+ "type": "ellipse",
+ "cx": 650.0,
+ "cy": 456.0,
+ "rx": 7.0,
+ "ry": 5.0
+ },
+ {
+ "id": "cap",
+ "type": "path",
+ "d": "M624 484 C 624 466 676 466 676 484 C 664 492 636 492 624 484 Z"
+ },
+ {
+ "id": "pod",
+ "type": "path",
+ "d": "M650 480 C 702 508 775 562 772 650 C 770 730 720 785 650 788 C 580 785 528 730 528 650 C 526 562 598 508 650 480 Z"
+ },
+ {
+ "id": "window",
+ "type": "ellipse",
+ "cx": 650.0,
+ "cy": 655.0,
+ "rx": 50.0,
+ "ry": 70.0
+ },
+ {
+ "id": "stone",
+ "type": "path",
+ "d": "M300 1180 C 298 1122 362 1088 452 1083 C 548 1078 646 1084 702 1112 C 742 1132 748 1176 722 1196 C 600 1206 420 1206 322 1200 C 307 1198 300 1191 300 1180 Z"
+ },
+ {
+ "id": "stone-side",
+ "type": "path",
+ "d": "M301 1172 C 380 1162 600 1160 744 1162 C 744 1180 736 1192 722 1196 C 600 1206 420 1206 322 1200 C 307 1198 300 1191 301 1172 Z"
+ },
+ {
+ "id": "left-tuft",
+ "type": "rect",
+ "x": 292.0,
+ "y": 1192.0,
+ "w": 44.0,
+ "h": 8.0
+ },
+ {
+ "id": "right-tuft",
+ "type": "rect",
+ "x": 690.0,
+ "y": 1190.0,
+ "w": 52.0,
+ "h": 8.0
+ }
+ ]
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": false
+ },
+ {
+ "id": "halo",
+ "name": "halo",
+ "kind": "vector",
+ "cels": [
+ {
+ "id": "c2",
+ "frame": 0,
+ "nodes": [
+ {
+ "id": "n8",
+ "type": "ellipse",
+ "cx": 650.0,
+ "cy": 655.0,
+ "rx": 260.0,
+ "ry": 260.0,
+ "fill": {
+ "radial": {
+ "center": [
+ 650.0,
+ 655.0
+ ],
+ "radius": 260.0,
+ "stops": [
+ [
+ 0.0,
+ "#7fd6ff66"
+ ],
+ [
+ 0.45,
+ "#3f9fd022"
+ ],
+ [
+ 1.0,
+ "#2a6f8800"
+ ]
+ ]
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "screen",
+ "visible": true
+ },
+ {
+ "id": "flats",
+ "name": "flats",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "c3",
+ "frame": 0
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true
+ },
+ {
+ "id": "shade",
+ "name": "shade",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "c4",
+ "frame": 0
+ }
+ ],
+ "opacity": 0.8,
+ "blend": "multiply",
+ "visible": true,
+ "clip": true
+ },
+ {
+ "id": "rim",
+ "name": "rim",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "c5",
+ "frame": 0
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true,
+ "clip": true
+ },
+ {
+ "id": "lines",
+ "name": "lines",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "c6",
+ "frame": 0
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true
+ },
+ {
+ "id": "light",
+ "name": "light",
+ "kind": "vector",
+ "cels": [
+ {
+ "id": "c7",
+ "frame": 0,
+ "nodes": [
+ {
+ "id": "n9",
+ "type": "ellipse",
+ "cx": 650.0,
+ "cy": 668.0,
+ "rx": 64.0,
+ "ry": 64.0,
+ "fill": {
+ "radial": {
+ "center": [
+ 650.0,
+ 668.0
+ ],
+ "radius": 64.0,
+ "stops": [
+ [
+ 0.0,
+ "#f4feffff"
+ ],
+ [
+ 0.5,
+ "#bff0ff88"
+ ],
+ [
+ 1.0,
+ "#6fd0ff00"
+ ]
+ ]
+ }
+ }
+ },
+ {
+ "id": "n10",
+ "type": "ellipse",
+ "cx": 560.0,
+ "cy": 560.0,
+ "rx": 4.0,
+ "ry": 4.0,
+ "fill": "#dff8ffcc",
+ "blur": 3.2
+ },
+ {
+ "id": "n11",
+ "type": "ellipse",
+ "cx": 742.0,
+ "cy": 520.0,
+ "rx": 3.0,
+ "ry": 3.0,
+ "fill": "#dff8ffcc",
+ "blur": 2.4
+ },
+ {
+ "id": "n12",
+ "type": "ellipse",
+ "cx": 770.0,
+ "cy": 712.0,
+ "rx": 5.0,
+ "ry": 5.0,
+ "fill": "#dff8ffcc",
+ "blur": 4.0
+ },
+ {
+ "id": "n13",
+ "type": "ellipse",
+ "cx": 590.0,
+ "cy": 830.0,
+ "rx": 3.0,
+ "ry": 3.0,
+ "fill": "#dff8ffcc",
+ "blur": 2.4
+ },
+ {
+ "id": "n14",
+ "type": "ellipse",
+ "cx": 708.0,
+ "cy": 452.0,
+ "rx": 2.5,
+ "ry": 2.5,
+ "fill": "#dff8ffcc",
+ "blur": 2.0
+ },
+ {
+ "id": "n15",
+ "type": "ellipse",
+ "cx": 520.0,
+ "cy": 700.0,
+ "rx": 2.5,
+ "ry": 2.5,
+ "fill": "#dff8ffcc",
+ "blur": 2.0
+ }
+ ]
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "add",
+ "visible": true
+ }
+ ],
+ "nextId": 15
+}
diff --git a/tests/formats/pre-1.0/lantern.klad/strokes/flats/c3.strokes b/tests/formats/pre-1.0/lantern.klad/strokes/flats/c3.strokes
new file mode 100644
index 0000000..e43f92d
Binary files /dev/null and b/tests/formats/pre-1.0/lantern.klad/strokes/flats/c3.strokes differ
diff --git a/tests/formats/pre-1.0/lantern.klad/strokes/lines/c6.strokes b/tests/formats/pre-1.0/lantern.klad/strokes/lines/c6.strokes
new file mode 100644
index 0000000..624f22c
Binary files /dev/null and b/tests/formats/pre-1.0/lantern.klad/strokes/lines/c6.strokes differ
diff --git a/tests/formats/pre-1.0/lantern.klad/strokes/rim/c5.strokes b/tests/formats/pre-1.0/lantern.klad/strokes/rim/c5.strokes
new file mode 100644
index 0000000..2e144fd
Binary files /dev/null and b/tests/formats/pre-1.0/lantern.klad/strokes/rim/c5.strokes differ
diff --git a/tests/formats/pre-1.0/lantern.klad/strokes/shade/c4.strokes b/tests/formats/pre-1.0/lantern.klad/strokes/shade/c4.strokes
new file mode 100644
index 0000000..b630a9a
Binary files /dev/null and b/tests/formats/pre-1.0/lantern.klad/strokes/shade/c4.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/.gitignore b/tests/formats/pre-1.0/rig.klad/.gitignore
new file mode 100644
index 0000000..ceddaa3
--- /dev/null
+++ b/tests/formats/pre-1.0/rig.klad/.gitignore
@@ -0,0 +1 @@
+.cache/
diff --git a/tests/formats/pre-1.0/rig.klad/brushes/ink.json b/tests/formats/pre-1.0/rig.klad/brushes/ink.json
new file mode 100644
index 0000000..16be123
--- /dev/null
+++ b/tests/formats/pre-1.0/rig.klad/brushes/ink.json
@@ -0,0 +1,24 @@
+{
+ "format": "klad-brush/1",
+ "name": "Inking pen",
+ "tip": {
+ "round": {
+ "hardness": 0.92
+ }
+ },
+ "spacing": 0.04,
+ "dynamics": {
+ "size": {
+ "pressure": {
+ "min": 0.06,
+ "gamma": 1.5
+ }
+ }
+ },
+ "taper": [
+ 10.0,
+ 10.0
+ ],
+ "stabilizer": 24.0,
+ "smoothing": 12.0
+}
diff --git a/tests/formats/pre-1.0/rig.klad/brushes/round-bristle.json b/tests/formats/pre-1.0/rig.klad/brushes/round-bristle.json
new file mode 100644
index 0000000..f75fcbe
--- /dev/null
+++ b/tests/formats/pre-1.0/rig.klad/brushes/round-bristle.json
@@ -0,0 +1,35 @@
+{
+ "format": "klad-brush/1",
+ "name": "Round bristle",
+ "tip": {
+ "image": {
+ "image": "bristle-round"
+ }
+ },
+ "spacing": 0.12,
+ "angle": "follow",
+ "flow": 0.4,
+ "dynamics": {
+ "size": {
+ "pressure": {
+ "min": 0.5
+ }
+ },
+ "flow": {
+ "pressure": {
+ "min": 0.3
+ }
+ }
+ },
+ "grain": {
+ "paper": {
+ "seed": 43,
+ "feature": 2
+ },
+ "strength": 0.15,
+ "pressure": 0.5
+ },
+ "color": {
+ "value": 0.03
+ }
+}
diff --git a/tests/formats/pre-1.0/rig.klad/doc.json b/tests/formats/pre-1.0/rig.klad/doc.json
new file mode 100644
index 0000000..36e9ffb
--- /dev/null
+++ b/tests/formats/pre-1.0/rig.klad/doc.json
@@ -0,0 +1,940 @@
+{
+ "format": "klad/4",
+ "rev": 10,
+ "canvas": {
+ "width": 800,
+ "height": 800,
+ "background": "#e9e2d4"
+ },
+ "timeline": {
+ "fps": 12,
+ "frames": 24,
+ "clips": [
+ {
+ "name": "wave",
+ "from": 0,
+ "to": 23,
+ "loop": true
+ }
+ ]
+ },
+ "layers": [
+ {
+ "id": "sky",
+ "name": "sky",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "c1",
+ "frame": 0,
+ "parts": {
+ "hill": [
+ 1
+ ],
+ "moon": [
+ 2
+ ]
+ }
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true,
+ "depth": 3.0
+ },
+ {
+ "id": "figure",
+ "name": "figure",
+ "kind": "group",
+ "children": [
+ {
+ "id": "colour",
+ "name": "colour",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "c2",
+ "frame": 0,
+ "hold": 1,
+ "parts": {
+ "body": [
+ 1
+ ],
+ "forearm": [
+ 4
+ ],
+ "hand": [
+ 5
+ ],
+ "head": [
+ 2
+ ],
+ "upper arm": [
+ 3
+ ]
+ }
+ },
+ {
+ "id": "c13",
+ "frame": 1,
+ "hold": 1,
+ "tween": {
+ "from": "c2",
+ "to": "c5",
+ "t": 0.25,
+ "made": "ad3dcb1486298b46"
+ },
+ "parts": {
+ "body": [
+ 1
+ ],
+ "forearm": [
+ 4
+ ],
+ "hand": [
+ 5
+ ],
+ "head": [
+ 2
+ ],
+ "upper arm": [
+ 3
+ ]
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -13.75,
+ "hand": -2.5,
+ "upper": -8.75
+ }
+ }
+ },
+ {
+ "id": "c14",
+ "frame": 2,
+ "hold": 1,
+ "tween": {
+ "from": "c2",
+ "to": "c5",
+ "t": 0.5,
+ "made": "0768e2975d60ebad"
+ },
+ "parts": {
+ "body": [
+ 1
+ ],
+ "forearm": [
+ 4
+ ],
+ "hand": [
+ 5
+ ],
+ "head": [
+ 2
+ ],
+ "upper arm": [
+ 3
+ ]
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -27.5,
+ "hand": -5.0,
+ "upper": -17.5
+ }
+ }
+ },
+ {
+ "id": "c15",
+ "frame": 3,
+ "hold": 1,
+ "tween": {
+ "from": "c2",
+ "to": "c5",
+ "t": 0.75,
+ "made": "fd4ca1e645da4c98"
+ },
+ "parts": {
+ "body": [
+ 1
+ ],
+ "forearm": [
+ 4
+ ],
+ "hand": [
+ 5
+ ],
+ "head": [
+ 2
+ ],
+ "upper arm": [
+ 3
+ ]
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -41.25,
+ "hand": -7.5,
+ "upper": -26.25
+ }
+ }
+ },
+ {
+ "id": "c5",
+ "frame": 4,
+ "hold": 1,
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -55.0,
+ "hand": -10.0,
+ "upper": -35.0
+ }
+ }
+ },
+ {
+ "id": "c19",
+ "frame": 5,
+ "hold": 1,
+ "tween": {
+ "from": "c5",
+ "to": "c7",
+ "t": 0.25,
+ "made": "dd4edd9e568fb3ec"
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -46.25,
+ "hand": -1.25,
+ "upper": -38.75
+ }
+ }
+ },
+ {
+ "id": "c20",
+ "frame": 6,
+ "hold": 1,
+ "tween": {
+ "from": "c5",
+ "to": "c7",
+ "t": 0.5,
+ "made": "e2fc00ee5e8ea966"
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -37.5,
+ "hand": 7.5,
+ "upper": -42.5
+ }
+ }
+ },
+ {
+ "id": "c21",
+ "frame": 7,
+ "hold": 1,
+ "tween": {
+ "from": "c5",
+ "to": "c7",
+ "t": 0.75,
+ "made": "84ad1e661f527ce9"
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -28.75,
+ "hand": 16.25,
+ "upper": -46.25
+ }
+ }
+ },
+ {
+ "id": "c7",
+ "frame": 8,
+ "hold": 1,
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -20.0,
+ "hand": 25.0,
+ "upper": -50.0
+ }
+ }
+ },
+ {
+ "id": "c25",
+ "frame": 9,
+ "hold": 1,
+ "tween": {
+ "from": "c7",
+ "to": "c9",
+ "t": 0.25,
+ "made": "84ad1e661f527ce9"
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -28.75,
+ "hand": 16.25,
+ "upper": -46.25
+ }
+ }
+ },
+ {
+ "id": "c26",
+ "frame": 10,
+ "hold": 1,
+ "tween": {
+ "from": "c7",
+ "to": "c9",
+ "t": 0.5,
+ "made": "e2fc00ee5e8ea966"
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -37.5,
+ "hand": 7.5,
+ "upper": -42.5
+ }
+ }
+ },
+ {
+ "id": "c27",
+ "frame": 11,
+ "hold": 1,
+ "tween": {
+ "from": "c7",
+ "to": "c9",
+ "t": 0.75,
+ "made": "dd4edd9e568fb3ec"
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -46.25,
+ "hand": -1.25,
+ "upper": -38.75
+ }
+ }
+ },
+ {
+ "id": "c9",
+ "frame": 12,
+ "hold": 1,
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -55.0,
+ "hand": -10.0,
+ "upper": -35.0
+ }
+ }
+ },
+ {
+ "id": "c31",
+ "frame": 13,
+ "hold": 1,
+ "tween": {
+ "from": "c9",
+ "to": "c11",
+ "t": 0.25,
+ "made": "dd4edd9e568fb3ec"
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -46.25,
+ "hand": -1.25,
+ "upper": -38.75
+ }
+ }
+ },
+ {
+ "id": "c32",
+ "frame": 14,
+ "hold": 1,
+ "tween": {
+ "from": "c9",
+ "to": "c11",
+ "t": 0.5,
+ "made": "e2fc00ee5e8ea966"
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -37.5,
+ "hand": 7.5,
+ "upper": -42.5
+ }
+ }
+ },
+ {
+ "id": "c33",
+ "frame": 15,
+ "hold": 1,
+ "tween": {
+ "from": "c9",
+ "to": "c11",
+ "t": 0.75,
+ "made": "84ad1e661f527ce9"
+ },
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -28.75,
+ "hand": 16.25,
+ "upper": -46.25
+ }
+ }
+ },
+ {
+ "id": "c11",
+ "frame": 16,
+ "hold": 8,
+ "pose": {
+ "rest": "c2",
+ "angles": {
+ "fore": -20.0,
+ "hand": 25.0,
+ "upper": -50.0
+ }
+ }
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true,
+ "rig": {
+ "skeleton": "bones"
+ }
+ },
+ {
+ "id": "lines",
+ "name": "lines",
+ "kind": "paint",
+ "cels": [
+ {
+ "id": "c3",
+ "frame": 0,
+ "hold": 1,
+ "parts": {
+ "body": [
+ 1
+ ],
+ "forearm": [
+ 5,
+ 6
+ ],
+ "head": [
+ 2,
+ 7,
+ 8
+ ],
+ "upper arm": [
+ 3,
+ 4
+ ]
+ }
+ },
+ {
+ "id": "c16",
+ "frame": 1,
+ "hold": 1,
+ "tween": {
+ "from": "c3",
+ "to": "c6",
+ "t": 0.25,
+ "made": "6421b74f3cf51f86"
+ },
+ "parts": {
+ "body": [
+ 1
+ ],
+ "forearm": [
+ 5,
+ 6
+ ],
+ "head": [
+ 2,
+ 7,
+ 8
+ ],
+ "upper arm": [
+ 3,
+ 4
+ ]
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -13.75,
+ "hand": -2.5,
+ "upper": -8.75
+ }
+ }
+ },
+ {
+ "id": "c17",
+ "frame": 2,
+ "hold": 1,
+ "tween": {
+ "from": "c3",
+ "to": "c6",
+ "t": 0.5,
+ "made": "ddbfd3039517beb1"
+ },
+ "parts": {
+ "body": [
+ 1
+ ],
+ "forearm": [
+ 5,
+ 6
+ ],
+ "head": [
+ 2,
+ 7,
+ 8
+ ],
+ "upper arm": [
+ 3,
+ 4
+ ]
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -27.5,
+ "hand": -5.0,
+ "upper": -17.5
+ }
+ }
+ },
+ {
+ "id": "c18",
+ "frame": 3,
+ "hold": 1,
+ "tween": {
+ "from": "c3",
+ "to": "c6",
+ "t": 0.75,
+ "made": "14559a8475801427"
+ },
+ "parts": {
+ "body": [
+ 1
+ ],
+ "forearm": [
+ 5,
+ 6
+ ],
+ "head": [
+ 2,
+ 7,
+ 8
+ ],
+ "upper arm": [
+ 3,
+ 4
+ ]
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -41.25,
+ "hand": -7.5,
+ "upper": -26.25
+ }
+ }
+ },
+ {
+ "id": "c6",
+ "frame": 4,
+ "hold": 1,
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -55.0,
+ "hand": -10.0,
+ "upper": -35.0
+ }
+ }
+ },
+ {
+ "id": "c22",
+ "frame": 5,
+ "hold": 1,
+ "tween": {
+ "from": "c6",
+ "to": "c8",
+ "t": 0.25,
+ "made": "2df37cfcbd3d5dc6"
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -46.25,
+ "hand": -1.25,
+ "upper": -38.75
+ }
+ }
+ },
+ {
+ "id": "c23",
+ "frame": 6,
+ "hold": 1,
+ "tween": {
+ "from": "c6",
+ "to": "c8",
+ "t": 0.5,
+ "made": "30baea0bb5426bf3"
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -37.5,
+ "hand": 7.5,
+ "upper": -42.5
+ }
+ }
+ },
+ {
+ "id": "c24",
+ "frame": 7,
+ "hold": 1,
+ "tween": {
+ "from": "c6",
+ "to": "c8",
+ "t": 0.75,
+ "made": "47f1554d5e043fef"
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -28.75,
+ "hand": 16.25,
+ "upper": -46.25
+ }
+ }
+ },
+ {
+ "id": "c8",
+ "frame": 8,
+ "hold": 1,
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -20.0,
+ "hand": 25.0,
+ "upper": -50.0
+ }
+ }
+ },
+ {
+ "id": "c28",
+ "frame": 9,
+ "hold": 1,
+ "tween": {
+ "from": "c8",
+ "to": "c10",
+ "t": 0.25,
+ "made": "47f1554d5e043fef"
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -28.75,
+ "hand": 16.25,
+ "upper": -46.25
+ }
+ }
+ },
+ {
+ "id": "c29",
+ "frame": 10,
+ "hold": 1,
+ "tween": {
+ "from": "c8",
+ "to": "c10",
+ "t": 0.5,
+ "made": "30baea0bb5426bf3"
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -37.5,
+ "hand": 7.5,
+ "upper": -42.5
+ }
+ }
+ },
+ {
+ "id": "c30",
+ "frame": 11,
+ "hold": 1,
+ "tween": {
+ "from": "c8",
+ "to": "c10",
+ "t": 0.75,
+ "made": "2df37cfcbd3d5dc6"
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -46.25,
+ "hand": -1.25,
+ "upper": -38.75
+ }
+ }
+ },
+ {
+ "id": "c10",
+ "frame": 12,
+ "hold": 1,
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -55.0,
+ "hand": -10.0,
+ "upper": -35.0
+ }
+ }
+ },
+ {
+ "id": "c34",
+ "frame": 13,
+ "hold": 1,
+ "tween": {
+ "from": "c10",
+ "to": "c12",
+ "t": 0.25,
+ "made": "2df37cfcbd3d5dc6"
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -46.25,
+ "hand": -1.25,
+ "upper": -38.75
+ }
+ }
+ },
+ {
+ "id": "c35",
+ "frame": 14,
+ "hold": 1,
+ "tween": {
+ "from": "c10",
+ "to": "c12",
+ "t": 0.5,
+ "made": "30baea0bb5426bf3"
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -37.5,
+ "hand": 7.5,
+ "upper": -42.5
+ }
+ }
+ },
+ {
+ "id": "c36",
+ "frame": 15,
+ "hold": 1,
+ "tween": {
+ "from": "c10",
+ "to": "c12",
+ "t": 0.75,
+ "made": "47f1554d5e043fef"
+ },
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -28.75,
+ "hand": 16.25,
+ "upper": -46.25
+ }
+ }
+ },
+ {
+ "id": "c12",
+ "frame": 16,
+ "hold": 8,
+ "pose": {
+ "rest": "c3",
+ "angles": {
+ "fore": -20.0,
+ "hand": 25.0,
+ "upper": -50.0
+ }
+ }
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true,
+ "rig": {
+ "skeleton": "bones"
+ }
+ },
+ {
+ "id": "bones",
+ "name": "bones",
+ "kind": "bones",
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true,
+ "bones": [
+ {
+ "name": "body",
+ "head": [
+ 400.0,
+ 590.0
+ ],
+ "tail": [
+ 400.0,
+ 360.0
+ ]
+ },
+ {
+ "name": "head",
+ "parent": "body",
+ "head": [
+ 400.0,
+ 360.0
+ ],
+ "tail": [
+ 400.0,
+ 230.0
+ ]
+ },
+ {
+ "name": "upper",
+ "parent": "body",
+ "head": [
+ 452.0,
+ 392.0
+ ],
+ "tail": [
+ 560.0,
+ 360.0
+ ]
+ },
+ {
+ "name": "fore",
+ "parent": "upper",
+ "head": [
+ 560.0,
+ 360.0
+ ],
+ "tail": [
+ 650.0,
+ 330.0
+ ]
+ },
+ {
+ "name": "hand",
+ "parent": "fore",
+ "head": [
+ 650.0,
+ 330.0
+ ],
+ "tail": [
+ 694.0,
+ 316.0
+ ]
+ }
+ ]
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true
+ },
+ {
+ "id": "lantern",
+ "name": "lantern",
+ "kind": "vector",
+ "cels": [
+ {
+ "id": "c4",
+ "frame": 0,
+ "nodes": [
+ {
+ "id": "flame",
+ "type": "ellipse",
+ "cx": 170.0,
+ "cy": 260.0,
+ "rx": 20.0,
+ "ry": 28.0,
+ "fill": "#ffcc66",
+ "blur": 6.0,
+ "keys": {
+ "opacity": [
+ {
+ "frame": 0,
+ "value": 1.0,
+ "ease": "in-out"
+ },
+ {
+ "frame": 6,
+ "value": 0.55,
+ "ease": "in-out"
+ },
+ {
+ "frame": 12,
+ "value": 1.0
+ }
+ ]
+ }
+ },
+ {
+ "id": "lamp",
+ "type": "rect",
+ "x": 150.0,
+ "y": 230.0,
+ "w": 40.0,
+ "h": 64.0,
+ "radius": 8.0,
+ "fill": "none",
+ "stroke": {
+ "paint": "#1f1d26",
+ "width": 4.0,
+ "cap": "round",
+ "join": "round"
+ }
+ }
+ ]
+ }
+ ],
+ "opacity": 1.0,
+ "blend": "normal",
+ "visible": true,
+ "keys": {
+ "y": [
+ {
+ "frame": 0,
+ "value": 0.0,
+ "ease": "in-out"
+ },
+ {
+ "frame": 12,
+ "value": -18.0,
+ "ease": "in-out"
+ },
+ {
+ "frame": 23,
+ "value": 0.0
+ }
+ ]
+ }
+ }
+ ],
+ "nextId": 36
+}
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c11.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c11.strokes
new file mode 100644
index 0000000..361c08d
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c11.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c13.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c13.strokes
new file mode 100644
index 0000000..27e3636
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c13.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c14.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c14.strokes
new file mode 100644
index 0000000..a89ae60
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c14.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c15.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c15.strokes
new file mode 100644
index 0000000..ad82c48
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c15.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c19.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c19.strokes
new file mode 100644
index 0000000..eecd09c
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c19.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c2.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c2.strokes
new file mode 100644
index 0000000..f16cbf8
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c2.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c20.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c20.strokes
new file mode 100644
index 0000000..cbff4a9
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c20.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c21.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c21.strokes
new file mode 100644
index 0000000..725a247
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c21.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c25.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c25.strokes
new file mode 100644
index 0000000..725a247
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c25.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c26.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c26.strokes
new file mode 100644
index 0000000..cbff4a9
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c26.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c27.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c27.strokes
new file mode 100644
index 0000000..eecd09c
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c27.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c31.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c31.strokes
new file mode 100644
index 0000000..eecd09c
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c31.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c32.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c32.strokes
new file mode 100644
index 0000000..cbff4a9
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c32.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c33.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c33.strokes
new file mode 100644
index 0000000..725a247
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c33.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c5.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c5.strokes
new file mode 100644
index 0000000..c61f93b
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c5.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c7.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c7.strokes
new file mode 100644
index 0000000..361c08d
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c7.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/colour/c9.strokes b/tests/formats/pre-1.0/rig.klad/strokes/colour/c9.strokes
new file mode 100644
index 0000000..c61f93b
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/colour/c9.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c10.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c10.strokes
new file mode 100644
index 0000000..a9f002d
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c10.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c12.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c12.strokes
new file mode 100644
index 0000000..fc863fb
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c12.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c16.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c16.strokes
new file mode 100644
index 0000000..ee5e864
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c16.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c17.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c17.strokes
new file mode 100644
index 0000000..67f711b
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c17.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c18.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c18.strokes
new file mode 100644
index 0000000..e656614
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c18.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c22.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c22.strokes
new file mode 100644
index 0000000..c0bee08
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c22.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c23.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c23.strokes
new file mode 100644
index 0000000..3f97727
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c23.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c24.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c24.strokes
new file mode 100644
index 0000000..2c1c9cc
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c24.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c28.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c28.strokes
new file mode 100644
index 0000000..2c1c9cc
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c28.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c29.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c29.strokes
new file mode 100644
index 0000000..3f97727
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c29.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c3.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c3.strokes
new file mode 100644
index 0000000..14fef7b
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c3.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c30.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c30.strokes
new file mode 100644
index 0000000..c0bee08
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c30.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c34.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c34.strokes
new file mode 100644
index 0000000..c0bee08
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c34.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c35.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c35.strokes
new file mode 100644
index 0000000..3f97727
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c35.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c36.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c36.strokes
new file mode 100644
index 0000000..2c1c9cc
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c36.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c6.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c6.strokes
new file mode 100644
index 0000000..a9f002d
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c6.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/lines/c8.strokes b/tests/formats/pre-1.0/rig.klad/strokes/lines/c8.strokes
new file mode 100644
index 0000000..fc863fb
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/lines/c8.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/strokes/sky/c1.strokes b/tests/formats/pre-1.0/rig.klad/strokes/sky/c1.strokes
new file mode 100644
index 0000000..51a6555
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/strokes/sky/c1.strokes differ
diff --git a/tests/formats/pre-1.0/rig.klad/weights/bones.weights b/tests/formats/pre-1.0/rig.klad/weights/bones.weights
new file mode 100644
index 0000000..f082c8d
Binary files /dev/null and b/tests/formats/pre-1.0/rig.klad/weights/bones.weights differ