Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ as a tiny human-readable language that renders to an animated 3D figure in the b
<a href="https://github.com/posecode-dev/posecode/tree/main/packages/posecode-mcp"><img src="https://img.shields.io/badge/MCP-Compatible-orange.svg" alt="MCP Compatible"/></a>
</p>

<p align="center">
<img src="docs/media/jumping-jacks.gif" width="440" alt="Jumping jacks rendered live from a .posecode text document"/>
</p>
<p align="center"><sub>One <code>.posecode</code> document — <code>shoulders: abduct 160</code>, <code>hips: abduct 30</code>, <code>repeat 12</code> — rendered live in the browser.</sub></p>

<table align="center">
<tr>
<td align="center"><img src="docs/media/deadlift.gif" width="230" alt="Deadlift rendered from .posecode text"/><br/><sub><code>pelvis: hinge</code>, deadlift</sub></td>
Expand Down
Binary file modified docs/media/deadlift.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/media/jumping-jacks.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/media/lateral-raise.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/media/squat.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,20 @@ <h1 class="headline">
<div class="studio">
<div class="studio-bar" aria-hidden="true">
<span class="dots"></span>
<span class="studio-title">squat.posecode</span>
<span class="studio-title">jumping-jacks.posecode</span>
<span class="studio-live"><i></i>live</span>
</div>
<canvas id="hero-canvas"></canvas>
<div class="studio-hud"><span id="hero-phase">Descend</span></div>
<div class="studio-hud"><span id="hero-phase">Out</span></div>
</div>

<!-- Overlapping code chip: the text that produces the motion -->
<pre class="code-chip" aria-hidden="true"><span class="t-kw">posecode</span> <span class="t-kind">exercise</span> <span class="t-str">"Body-weight squat"</span>
<pre class="code-chip" aria-hidden="true"><span class="t-kw">posecode</span> <span class="t-kind">exercise</span> <span class="t-str">"Jumping jacks"</span>
<span class="t-kw">pose</span> start <span class="t-punct">=</span> <span class="t-atom">standing</span>

<span class="t-kw">step</span> <span class="t-str">"Descend"</span> <span class="t-num">1.6s</span> <span class="t-atom">ease-in-out</span><span class="t-punct">:</span>
<span class="t-joint">hips</span><span class="t-punct">:</span> <span class="t-act">flex</span> <span class="t-num">80</span>
<span class="t-joint">knees</span><span class="t-punct">:</span> <span class="t-act">flex</span> <span class="t-num">95</span>
<span class="t-kw">step</span> <span class="t-str">"Out"</span> <span class="t-num">0.5s</span> <span class="t-atom">ease-out</span><span class="t-punct">:</span>
<span class="t-joint">shoulders</span><span class="t-punct">:</span> <span class="t-act">abduct</span> <span class="t-num">160</span>
<span class="t-joint">hips</span><span class="t-punct">:</span> <span class="t-act">abduct</span> <span class="t-num">30</span>
<span class="t-kw">ground-lock</span><span class="t-punct">:</span> <span class="t-atom">feet</span></pre>
</div>
</section>
Expand Down
5 changes: 4 additions & 1 deletion playground/src/landing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ function initHero(): void {
viewer.onPhase(({ phaseName }) => {
if (phaseEl) phaseEl.textContent = phaseName === "reset" ? "" : phaseName;
});
const { ir } = parse(PRESETS[0]!.source); // body-weight squat
// Hero movement: jumping jacks. Full-body, symmetric, and cyclical, so it
// reads instantly and loops seamlessly through the neutral standing pose.
const heroPreset = PRESETS.find((p) => p.id === "jumping-jacks") ?? PRESETS[0]!;
const { ir } = parse(heroPreset.source);
if (ir) {
viewer.load(ir);
viewer.setLoop(true);
Expand Down
Loading