-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
180 lines (172 loc) · 14 KB
/
Copy pathindex.html
File metadata and controls
180 lines (172 loc) · 14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Monocurl is an interactive desktop app and programming language specifically designed for animating STEM figures, videos, and slideshows.">
<meta name="robots" content="index,follow">
<title>Monocurl</title>
<link rel="canonical" href="https://www.monocurl.com/">
<meta property="og:site_name" content="Monocurl">
<meta property="og:title" content="Monocurl">
<meta property="og:description" content="Monocurl is an interactive desktop app and programming language specifically designed for animating STEM figures, videos, and slideshows.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.monocurl.com/">
<meta property="og:image" content="https://www.monocurl.com/img/home/monocurl-editor.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Monocurl">
<meta name="twitter:description" content="Monocurl is an interactive desktop app and programming language specifically designed for animating STEM figures, videos, and slideshows.">
<meta name="twitter:image" content="https://www.monocurl.com/img/home/monocurl-editor.png">
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="stylesheet" href="/css/site.css">
<script defer src="/js/i18n.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-325110115">
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-325110115');
</script>
</head>
<body>
<div class="noise" aria-hidden="true"></div>
<header class="topbar">
<a class="brand" href="/">
<img src="/img/monocurl-1024.png" alt="">
<span>Monocurl</span>
</a>
<nav class="top-links" aria-label="primary">
<a class="active" href="/" data-i18n="nav.home">Home</a>
<a href="/gallery/" data-i18n="nav.gallery">Gallery</a>
<a href="/learn/00-overview.html" data-i18n="nav.learn">Learn</a>
<a href="/docs/" data-i18n="nav.docs">Docs</a>
<a href="https://www.monocurl.com/monocurl-essays/" data-i18n="nav.essays">Essays</a>
</nav>
<div class="top-actions">
<a class="social-link" href="https://discord.gg/7g94JR3SAD">Discord</a>
<a class="social-link" href="https://github.com/monocurl/monocurl">GitHub</a>
<span data-language-picker></span>
<a class="download-button" href="/download/" data-i18n="nav.download">Download</a>
</div>
</header>
<main class="home">
<section class="hero-field">
<p class="announcement" data-i18n="home.announcement">Make images, videos, and slideshows using math</p>
<h1>Monocurl</h1>
<p class="hero-copy">
Monocurl is an interactive desktop app and programming language specifically designed for animating STEM figures, videos, and slideshows.
</p>
<div class="hero-actions">
<a class="primary-action download-action" href="/download/" data-i18n="home.download">Download</a>
<a class="ghost-action" href="/learn/00-overview.html" data-i18n="home.tutorials">Tutorials</a>
</div>
<figure class="hero-product">
<img src="/img/home/monocurl-editor.png" alt="Monocurl editor example">
</figure>
</section>
<section class="gallery-section">
<p class="eyebrow" data-i18n="gallery.eyebrow">gallery</p>
<div class="gallery-grid"><a class="gallery-item" href="/gallery/#04-pythagorean-theorem"><video loop muted autoplay playsinline src="/media/generated/gallery-04-pythagorean-theorem-dab586aa0aef5a11.mp4"></video><span class="gallery-caption">Pythagorean Theorem</span></a><a class="gallery-item" href="/gallery/#05-circular-pattern"><img src="/media/generated/gallery-05-circular-pattern-75f4e9890ba90ba6.png" alt="Circular Pattern"><span class="gallery-caption">Circular Pattern</span></a><a class="gallery-item" href="/gallery/#06-flow-field"><video loop muted autoplay playsinline src="/media/generated/gallery-06-flow-field-9eeaa999c0275a9e.mp4"></video><span class="gallery-caption">Flow Field</span></a><a class="gallery-item" href="/gallery/#01-riemann-rectangles-full"><video loop muted autoplay playsinline src="/media/generated/gallery-07-riemann-rectangles-f92e08fd0c6d29ac.mp4"></video><span class="gallery-caption">Riemann Rectangles</span></a><a class="gallery-item" href="/gallery/#08-breather-surface"><img src="/media/generated/gallery-08-breather-surface-13377f5494f0ee5b.png" alt="Breather Surface"><span class="gallery-caption">Breather Surface</span></a><a class="gallery-item" href="/gallery/#09-tree-fractal"><img src="/media/generated/gallery-09-tree-fractal-55f1d8c4ba2b9515.png" alt="Tree Fractal"><span class="gallery-caption">Tree Fractal</span></a></div>
<p class="gallery-note"><span data-i18n="gallery.note">For written mathematical essays with live Monocurl scenes, visit</span> <a href="https://www.monocurl.com/monocurl-essays/">Monocurl Essays</a>.</p>
</section>
<section class="three-up">
<article>
<p class="eyebrow" data-i18n="home.outputs.eyebrow">outputs</p>
<h2 data-i18n="home.outputs.title">Produce slideshows, videos, and images</h2>
<p data-i18n="home.outputs.text">One source file can become a live presentation, a rendered video, or a still image for written material.</p>
</article>
<article>
<p class="eyebrow" data-i18n="home.interactive.eyebrow">interactive</p>
<h2 data-i18n="home.interactive.title">Interactive development and rendering</h2>
<p data-i18n="home.interactive.text">Develop with live parameters, slide playback, and rendered output in the same workspace.</p>
<figure class="feature-demo" aria-label="interactive Monocurl development demo" data-i18n-aria-label="home.interactive.demo_label">
<video controls muted playsinline preload="metadata" poster="/img/home/monocurl-interactive-thumbnail.png" src="/video/interactive-development.mp4"></video>
</figure>
</article>
<article>
<p class="eyebrow" data-i18n="home.design.eyebrow">Novel Design</p>
<h2 data-i18n="home.design.title">Designed from the ground up</h2>
<p data-i18n="home.design.text">The language and editor are designed to be a complete and elegant solution for making programmatic animations.</p>
</article>
</section>
<section class="workbench">
<div class="workbench-top">
<span>scene.mcl</span>
<span data-i18n="home.preview">preview</span>
</div>
<div class="workbench-body">
<div class="code-shell" data-language="mcl"><button class="code-copy" type="button" data-copy-code data-i18n="copy.copy">Copy</button><pre class="code-block"><code><span class="mc-token mc-non-control-flow-keyword mc-token-slide">slide</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-text-literal mc-token-string-literal">"Minimal Working Example"</span><span class="mc-token mc-whitespace mc-token-newline">
</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-non-control-flow-keyword mc-token-mesh">mesh</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-identifier mc-token-identifier">word</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-operator mc-token-assign">=</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-identifier mc-token-identifier mc-operator-invocation">center</span><span class="mc-token mc-punctuation mc-token-l-flower">{</span><span class="mc-token mc-numeric-literal mc-token-integer-literal">0u</span><span class="mc-token mc-punctuation mc-token-r-flower">}</span><span class="mc-token mc-whitespace mc-token-newline">
</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-identifier mc-token-identifier mc-function-invocation">Text</span><span class="mc-token mc-punctuation mc-token-l-paren">(</span><span class="mc-token mc-text-literal mc-token-string-literal">"Monocurl"</span><span class="mc-token mc-operator mc-token-comma">,</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-numeric-literal mc-token-float-literal">3.0</span><span class="mc-token mc-punctuation mc-token-r-paren">)</span><span class="mc-token mc-whitespace mc-token-newline">
</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-control-flow mc-token-play">play</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-identifier mc-token-identifier mc-function-invocation">Write</span><span class="mc-token mc-punctuation mc-token-l-paren">(</span><span class="mc-token mc-numeric-literal mc-token-integer-literal">3</span><span class="mc-token mc-punctuation mc-token-r-paren">)</span><span class="mc-token mc-whitespace mc-token-newline">
</span><span class="mc-token mc-whitespace mc-token-newline">
</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-control-flow mc-token-play">play</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-identifier mc-token-identifier mc-function-invocation">Wait</span><span class="mc-token mc-punctuation mc-token-l-paren">(</span><span class="mc-token mc-numeric-literal mc-token-integer-literal">1</span><span class="mc-token mc-punctuation mc-token-r-paren">)</span><span class="mc-token mc-whitespace mc-token-newline">
</span><span class="mc-token mc-whitespace mc-token-newline">
</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-identifier mc-token-identifier">word</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-operator mc-token-assign">=</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-punctuation mc-token-l-bracket">[</span><span class="mc-token mc-punctuation mc-token-r-bracket">]</span><span class="mc-token mc-whitespace mc-token-newline">
</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-control-flow mc-token-play">play</span><span class="mc-token mc-whitespace mc-token-whitespace"> </span><span class="mc-token mc-identifier mc-token-identifier mc-function-invocation">Fade</span><span class="mc-token mc-punctuation mc-token-l-paren">(</span><span class="mc-token mc-numeric-literal mc-token-float-literal">0.8</span><span class="mc-token mc-punctuation mc-token-r-paren">)</span></code></pre></div>
<div class="workbench-media"><video autoplay loop muted playsinline controls src="/media/generated/home-monocurl-title-69e3be7260301ad6.mp4"></video></div>
</div>
</section>
<section class="home-lists">
<div>
<p class="eyebrow" data-i18n="home.lessons">lessons</p>
<nav class="link-stack"><a href="/learn/00-overview.html"><span>01</span>Overview</a><a href="/learn/01-language.html"><span>02</span>Language Basics</a><a href="/learn/02-meshes.html"><span>03</span>Meshes And Operators</a><a href="/learn/03-animation.html"><span>04</span>Animation Basics</a><a href="/learn/04-parallel.html"><span>05</span>Parallel Animations</a><a href="/learn/05-ai-development.html"><span>06</span>AI Development</a><a href="/learn/06-advanced.html"><span>07</span>Advanced Topics</a></nav>
</div>
<div>
<p class="eyebrow" data-i18n="home.docs">docs</p>
<nav class="link-stack"><a href="/docs/anim.html"><span>std</span>anim</a><a href="/docs/color.html"><span>std</span>color</a><a href="/docs/math.html"><span>std</span>math</a><a href="/docs/mesh.html"><span>std</span>mesh</a><a href="/docs/scene.html"><span>std</span>scene</a><a href="/docs/util.html"><span>std</span>util</a></nav>
</div>
</section>
</main>
<script>
document.addEventListener('click', async (event) => {
const button = event.target.closest('[data-copy-code]');
if (!button) return;
const block = button.closest('.code-shell');
const code = block && block.querySelector('code');
if (!code) return;
try {
await navigator.clipboard.writeText(code.textContent);
button.textContent = window.MonocurlI18n?.text('copy.copied') || 'Copied';
window.setTimeout(() => { button.textContent = window.MonocurlI18n?.text('copy.copy') || 'Copy'; }, 1200);
} catch (_) {
button.textContent = window.MonocurlI18n?.text('copy.failed') || 'Failed';
window.setTimeout(() => { button.textContent = window.MonocurlI18n?.text('copy.copy') || 'Copy'; }, 1200);
}
});
const linuxInstallCommand = document.querySelector('[data-linux-install-command]');
if (linuxInstallCommand) {
const servingOrigin =
window.location.protocol === 'http:' || window.location.protocol === 'https:'
? window.location.origin
: 'https://www.monocurl.com';
linuxInstallCommand.textContent = `curl -f ${servingOrigin}/download/install.sh | sh`;
}
const tocLinks = Array.from(document.querySelectorAll('.toc-panel a[href^="#"]'));
const tocTargets = tocLinks
.map((link) => [link, document.getElementById(decodeURIComponent(link.hash.slice(1)))])
.filter((pair) => pair[1]);
function setActiveToc(id) {
for (const link of tocLinks) {
const active = decodeURIComponent(link.hash.slice(1)) === id;
link.classList.toggle('active', active);
if (active) link.setAttribute('aria-current', 'true');
else link.removeAttribute('aria-current');
}
}
if (tocTargets.length > 0) {
setActiveToc(tocTargets[0][1].id);
const observer = new IntersectionObserver((entries) => {
const visible = entries
.filter((entry) => entry.isIntersecting)
.sort((a, b) => a.boundingClientRect.top - b.boundingClientRect.top)[0];
if (visible) setActiveToc(visible.target.id);
}, { rootMargin: '-18% 0px -68% 0px', threshold: [0, 1] });
for (const [, target] of tocTargets) observer.observe(target);
}
</script>
</body>
</html>