Orbs

Terminator Orb

A sphere's day and night line drawn with masked ellipses: phase sets the lit fraction over regolith, ocean or cloud surfaces. Optional twilight spread, atmospheric rim, city lights, airglow and earthshine.

The source comes with full access.

One payment of $149 ($49 for now) opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/terminator-orb
npx shadcn add @01orbital/terminator-orb
yarn shadcn add @01orbital/terminator-orb
bunx --bun shadcn add @01orbital/terminator-orb

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/orbs/terminator-orb.tsx, as source you own and edit.

Usage

import {
  Terminator,
  type TerminatorPalette,
} from "@/components/orbs/terminator-orb"

// The regolith palette, gibbous and airless; phase turns the terminator.
const PALETTE = {
  peak: "oklch(0.944 0.017 84.6)",
  mid: "oklch(0.741 0.022 81.8)",
  low: "oklch(0.499 0.017 80.6)",
  edge: "oklch(0.258 0.007 67.5)",
  night: "oklch(0.146 0.004 285.9)",
  shine: "oklch(0.439 0.031 266.3)",
} satisfies TerminatorPalette

export default function TerminatorOrbDemo() {
  return (
    <Terminator size={280} phase={42} surface="regolith" palette={PALETTE} />
  )
}

API reference

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs them for you.

No other registry pieces.