Menu

Artemis II

Drawn

Hand-drawn Catmull-Rom spline through 21 control points, tracing a path inspired by the Artemis II lunar free-return trajectory. The first built-in curve created with drawCurve.

Import

import { artemis2 } from "@sarmal/core/curves/artemis2";

Definition

Hand-drawn Catmull-Rom spline through 21 control points, tracing a path inspired by the Artemis II lunar free-return trajectory. The first built-in curve created with drawCurve.

Parameters

Family NASA
Kind Drawn
Period
Default Speed 0.7
Skeleton static

Key Features

  • Hand-drawn using 21 control points in the playground
  • Closed Catmull-Rom spline passing through every point
  • Based on NASA's Artemis II mission trajectory outline
  • Demonstrates the drawCurve API as a built-in curve

Usage

Standard

import { createSarmal } from "@sarmal/core";
import { artemis2 } from "@sarmal/core/curves/artemis2";

const canvas = document.getElementById("sarmal") as HTMLCanvasElement;
const sarmal = createSarmal(canvas, artemis2);

React

import { Sarmal } from "@sarmal/react";
import { artemis2 } from "@sarmal/core/curves/artemis2";

function App() {
  return <Sarmal curve={artemis2} />;
}