You are reading the development docs (2026.12.1-dev.1): features here may not be released yet.
Skip to content

Space Phenomena ​

Things space is full of: gas clouds, asteroid belts and single rocks, comets, galaxies and the Crystalline Entity. The keys every object takes (id, at, rotation, spin, opacity ...) are on the Objects page. In the diagram look, a belt, an asteroid, a comet, a galaxy, the Crystalline Entity and a volume nebula are drawn as wireframes.

nebula ​

Clouds of gas in the scene, in the look of the nebula background preset. Use it for a nebula on a star map, a gas cloud round a station, or a storm to fly into.

  • The clouds are soft puffs that face the camera at slightly different depths, so they shift against each other as the camera turns, and fade as you fly into them.
  • render: volume draws the same clouds as one body of gas you can fly into. Only a volume nebula takes shape, dust, density and lightning.
  • A preset starts you from a named nebula: badlands and badlands_voyager (the plasma storms of Deep Space Nine and Voyager) or nexus (the ribbon from Star Trek Generations). Every key you set wins over the preset's.
  • The Effects page has the full guide with more examples: shapes, dust lanes, the Badlands and the Nexus.
yaml
type: custom:lcards-astrometrics-card
height: 320
camera:
  views:
    v:
      target: [0, 0, 0]
      yaw: 20
      tilt: 20
      distance: 260
backdrop:
  stars:
    count: 2000
objects:
  # puffs (the default)
  - type: nebula
    at: [-75, 0, 0]
    radius: 70
    count: 6
    seed: 5
    drift: 3
    min_radius: 20
    max_radius: 40
    colors: [var(--lcars-violet), var(--lcars-ice)]
  # the same kind of clouds as gas you can fly into
  - type: nebula
    render: volume
    at: [75, 0, 0]
    radius: 70
    count: 6
    seed: 5
    drift: 3
    colors: [var(--lcars-orange), var(--lcars-red)]
More about nebulae
  • How count and seed place the clouds: the seed deals the clouds one after another, each with a colour from colors, a spot anywhere in the region (size box or radius ball), a radius between min_radius and max_radius and a brightness. Raising count adds the next cloud from the same deal and leaves the earlier ones where they were. Overlapping clouds add up, so gas where clouds meet is denser, and a new cloud that lands away from the others reads as a separate nebula. A different seed deals a different set; clouds places them by hand.
  • Never tappable: clouds never catch a tap, so they never get in the way of points behind them. To label a cloud, put a point at the same place.
  • Hand-placed clouds: each entry in clouds takes xyz (scene units from the object), radius, color, opacity, size: [width, height, depth] with rotation: [x, y, z] for an ellipsoid, and dust: true for a dark dust cloud (volume only). See Shapes, dust and colour.
  • Presets and your own box: a preset's box is 500 across (the Nexus: 2000 long). With a size of your own, the preset's drift and ribbon speed scale with it, so the gas moves as fast for its size; a drift or speed you set stays as written.
  • Entities: drift and density can follow an entity; they ease to each new value.
  • Reduced motion: the gas holds still.
KeyTypeDefaultDescription
radiusnumber100The clouds fill a ball this big round at, scene units
sizenumber / [w, h, d]-Or a box, scene units (one number for a cube). Wins over radius
countnumber4How many clouds the seed places, 1 to 10
seednumber1The same seed always places the same clouds
cloudslist-Clouds placed by hand (up to 10 gas and 4 dust clouds), instead of count and the seed
colorcolourvar(--lcars-violet)Cloud colour when colors is not set (a preset sets colors)
colorscolour / listvar(--lcars-violet)One colour, or a list the seed picks from per cloud. Wins over color
min_radiusnumber0.15 of the regionSmallest cloud radius, scene units. 0.25 with render: volume
max_radiusnumber0.4 of the regionLargest cloud radius, scene units. 0.55 with render: volume
brightness[min, max][0.3, 0.8]Each cloud's opacity is picked between these. A cloud's own opacity wins
turbulencenumber0.5How ragged the edges are, 0 to 1
noise_scalenumberabout 1.5 cells a cloudDetail of the gas per scene unit: lower is larger, smoother wisps
driftnumber / [x, y]0How fast the gas churns, scene units per second. [x, y] gives a direction. 0 is still
stretchnumber0How drawn out each seeded cloud is, 0 (round) to 1 (long and flat), each turned its own way
core.colorcolour-A colour deep in the gas, running out to the cloud colours at the edges
blendstringaddadd: light adds up. normal: drawn over what is behind
renderstringpuffspuffs, or volume: gas you can fly into
densitynumber1render: volume: how thick the gas is (2 is twice as thick)
shapestringcloudsrender: volume: the form of the gas: clouds, shell, bipolar, filaments, cavity, layers or wake. See Shapes, dust and colour
dust.countnumber0render: volume: dark dust clouds the seed lays across the gas, 0 to 4
dust.amountnumber0.8How dark the dust is, 0 to 1
dust.colorcolourblackThe dust's colour
presetstring-badlands, badlands_voyager or nexus. See the Badlands and the Nexus
gap, veins, band, columnsshape: layers: see the Badlands
ribbon, wakeshape: wake: see the Nexus
lightningboolean / objectfalserender: volume: strikes in the gas that light it, with the lightning object's keys

belt ​

An asteroid belt: a band of low-poly rocks round its centre. Use it round a star or a planet, or as a field of rocks to fly through.

  • at is the centre: a point id or [x, y, z]. A point id makes the belt follow a star or planet when it moves.
  • The belt is lit from its centre, as by its star: the side of each rock facing the centre is bright, the far side dark.
  • The rocks are one draw, so thousands of them are fine. rotation tilts the belt and spin turns it as one piece.
yaml
type: custom:lcards-astrometrics-card
height: 320
camera:
  views:
    v:
      target: [0, 0, 0]
      yaw: 20
      tilt: 22
      distance: 150
points:
  - id: sun
    xyz: [0, 0, 0]
    label: SOL
    style: minor
objects:
  - type: glow
    at: sun
    size: 40
    color: var(--lcars-yellow)
  - type: sphere
    at: sun
    radius: 6
    fill:
      color: var(--lcars-yellow)
    color: var(--lcars-orange)
    line_spacing_deg: 30
  - type: belt
    at: sun
    radius: [45, 62]
    count: 1500
    size: [0.3, 1.8]
    period: 40
    colors:
      - var(--lcards-gray-light)
      - var(--lcards-gray-medium)
      - var(--lcards-yellow-dark)

Close up, the rocks are rough and faceted:

yaml
type: custom:lcards-astrometrics-card
height: 300
camera:
  views:
    v:
      target: [50, 0, 0]
      yaw: 250
      tilt: 10
      distance: 16
objects:
  - type: glow
    size: 30
    color: var(--lcars-yellow)
  - type: belt
    radius: [44, 56]
    thickness: 4
    count: 1500
    size: [0.2, 1.6]
    tumble: 20
    color: var(--lcars-khaki)
More about belts
  • Orbits: with period, the rocks at the inner edge go round once in that many seconds, and the outer rocks take longer, as real orbits do.
  • Entities: radius (each edge too), thickness and count can follow an entity. They change in place and ease: the band widens, thins or fills round the same rocks.
  • From far away: when even the largest rocks would be under about 1.5 px, the rocks are drawn as dots of the same size and shade (cheaper, and it looks the same). Zoom in and they are rocks again.
  • Reduced motion: period and tumble hold still.
KeyTypeDefaultDescription
radiusnumber / [inner, outer][80, 100]The band's inner and outer radius, scene units. One number is the outer radius, and the inner is 0.8 of it
thicknessnumber0.15 of the band's widthHow far the rocks spread above and below the plane, scene units
countnumber600How many rocks, at most 5000
sizenumber / [smallest, largest][0.4, 1.6]Rock size, scene units: many small ones and a few large. One number is the largest, and the smallest is a quarter of it
seednumber1A different number gives a different belt; the same config always gives the same one
periodnumber0Seconds for the inner edge to go round once. 0 is still
tumblenumber30How fast each rock turns on its own axis, degrees per second (each a little faster or slower). 0 is still
colorcolourvar(--lcards-gray-light)The rocks' colour, varied a little per rock
colorslist-Several rock colours: each rock takes one, picked by the seed. Wins over color

asteroid ​

One rock for a close look: a single asteroid, a moonlet, a rock by a station. For many rocks round a centre, use a belt.

  • Set light to its star (a point id or [x, y, z]). The side facing it is lit and the far side dark, with a hard edge between them.
  • tumble turns it on its own axis; spin, face and rotation turn it as they turn any object.
yaml
type: custom:lcards-astrometrics-card
height: 320
camera:
  views:
    v:
      target: [0, 0, 0]
      yaw: 30
      tilt: 12
      distance: 30
points:
  - id: sun
    xyz: [-70, 20, 40]
  - id: rock_label
    xyz: [0, 9, 0]
    label: 433 EROS
    style: minor
objects:
  - type: glow
    at: sun
    size: 14
    color: var(--lcars-yellow)
  - type: asteroid
    id: eros
    size: 16
    seed: 4
    tumble: 12
    light: sun
More about asteroids
  • The shape: the rock has broad lumps, craters and fine roughness, stretched its own way, with flat faces that catch the light.
  • From far away: when it would be under about 1.5 px, it is drawn as a dot, as bright as its lit part seen from where you are.
  • Reduced motion: tumble holds still.
KeyTypeDefaultDescription
sizenumber4Largest extent, scene units
seednumber1A different number gives a different rock; the same config always gives the same one
tumblenumber10How fast it turns on its own axis (picked by the seed), degrees per second. 0 is still
lightid / [x, y, z]the frame's originWhere the light comes from: a point id (a star that moves too) or [x, y, z]. Left out, the scene's origin, or the star of the system it is in
colorcolourvar(--lcards-gray-light)The rock's colour on its lit side
occludebooleantrueHide labels and cards behind it

comet ​

A comet: a small dark nucleus, a glowing coma round it and two tails that always point away from its star. Use it on an orbit through a star system, or as a single visitor in a close-up.

  • Set light to the star (a point id or [x, y, z]). The tails point away from it and the nucleus is lit from it.
  • There are two tails: a straight, bluish ion tail and a broader dust tail that bends back along the comet's path as it moves.
  • activity.mode: distance makes the comet grow and brighten near its star and fade away from it.
  • face, spin and rotation turn the nucleus, never the tails.

On an orbit centred off its star, this comet swings in, grows its tails and brightens, then fades as it swings out:

yaml
type: custom:lcards-astrometrics-card
height: 360
camera:
  views:
    v:
      target: [30, 0, 0]
      yaw: 0
      tilt: 55
      distance: 330
points:
  - id: sun
    xyz: [0, 0, 0]
    label: STAR
    style: minor
  - id: comet_at
    polar: [100, 300]
    object: orbit
objects:
  - type: glow
    at: sun
    size: 40
    color: var(--lcars-yellow)
  - type: ring
    id: orbit
    at: [75, 0, 0]
    radius: 100
    spin: 10
    width: 1
    color: theme:colors.ui.secondary
    opacity: 0.4
  - type: comet
    at: comet_at
    light: sun
    tail:
      length: 90
    coma:
      size: 8
    activity:
      mode: distance
      range: [25, 175]
More about comets
  • Activity by distance: with activity.mode: distance, the coma, the tails and the glow are scaled every frame: full at the near end of range and closer, falling with the square of the distance, and gone at the far end.
  • Entities: nucleus.size, coma.size, tail.length and glow can follow an entity; they change in place.
  • Motion: the tails stream with the scene clock. Under reduced motion they hold still, and so does the nucleus's tumble.
KeyTypeDefaultDescription
lightid / [x, y, z]the frame's originThe star: a point id or [x, y, z]. Left out, as for an asteroid
colorcolourvar(--lcards-moonlight)The coma and the dust tail, unless they set their own
nucleus.sizenumber2The nucleus's largest extent, scene units
nucleus.colorcolourvar(--lcards-gray-medium-dark)The nucleus's colour
nucleus.tumblenumber10How fast the nucleus turns, degrees per second. 0 is still
coma.sizenumber10The diameter of the glowing cloud round the nucleus, scene units
coma.colorcolourcolorThe coma's colour
tail.lengthnumber60How far the tails reach away from the star, scene units. The dust tail fades sooner
ion_tailboolean / objecttrueThe straight ion tail. false turns it off
ion_tail.colorcolourvar(--lcards-blue-medium)The ion tail's colour
dust_tailboolean / objecttrueThe broad dust tail. false turns it off
dust_tail.colorcolourcolorThe dust tail's colour
glownumber1Opacity of the coma and the tails, 0 to 1. The nucleus stays
activity.modestringfixedfixed: as set. distance: grows and brightens near its star
activity.range[near, far][50, 300]With mode: distance: full at near and closer, gone at far, scene units (the system's, in a system)
seednumber1A different number gives a different nucleus and tails

galaxy ​

A spiral galaxy in 3D, made of seeded stars. By default it is the Milky Way. Use it as the map behind a galaxy-scale scene, with your points on it.

  • Everything scales with radius: 50,000 by default, which is light years with units: ly.
  • The Sun's place is 0.52 of the radius toward bearing 180 (polar: [26000, 180] at the default size), where a scene puts its Sol point.
  • arms.count (1 to 8) makes a generic spiral of equal arms instead of the Milky Way.
  • Every star is at its own place, so the galaxy shows parallax as you fly through it.
yaml
type: custom:lcards-astrometrics-card
height: 360
units: ly
camera:
  views:
    v:
      target: [0, 0, 0]
      yaw: 20
      tilt: 40
      distance: 120000
points:
  - id: sol
    polar: [26000, 180]
    marker: dot
    label: SOL
objects:
  - type: galaxy
    stars:
      count: 30000
More about the galaxy
  • What it is made of: the stars are points of light at any distance, as the backdrop's, along a central bar, a bulge, spiral arms and a thin disc. A soft glow runs along the arms and at the core, with darker dust lanes on the arms' inner edges.
  • The Milky Way: the default has the bar, the two major arms (Scutum-Centaurus and Perseus) from its ends, the two minor arms (Sagittarius and Norma) between them, and the Orion spur where the Sun is.
  • The bar: the arms start at the ends of the bar and turn with it when you change bar.angle.
  • From far away: fewer of the stars draw.
KeyTypeDefaultDescription
radiusnumber50,000 light yearsThe disc's radius: 50000 in plain scene units or ly, converted for other named units
thicknessnumber0.02The disc's thickness as a fraction of the radius, up to 0.5
arms.countnumber-A spiral of this many equal arms, 1 to 8. Leave it out for the Milky Way
arms.pitchnumber12How tightly the arms wind, degrees, 4 to 45. Larger opens them
arms.colorcolourvar(--lcars-blue)The colour the arm stars lean toward, and the arms' glow
bar.lengthnumber0.32The bar's half-length as a fraction of the radius, up to 0.8. 0 is no bar
bar.anglenumber153The bearing of the bar's near end, degrees: 27 degrees off the line to the Sun, as in the Milky Way
stars.countnumber40000How many stars, at most 100,000
stars.colorcolourvar(--lcards-moonlight)The stars' base colour
seednumber3A different number gives a different scatter of stars
core.colorcolourvar(--lcars-yellow)The bulge and bar stars and the core's glow
glownumber0.6Opacity of the glow along the arms and at the core, 0 to 1. 0 is none
dust.amountnumber0.5Opacity of the dust lanes, 0 to 1. 0 is none
dust.colorcolourthe background colourThe dust lanes' colour

crystalline ​

The Crystalline Entity (Star Trek: The Next Generation, "Datalore" and "Silicon Avatar"), made in code. Use it beside a ship or a planet for an encounter scene.

  • size is its height along the spine (the object's y axis). It fits inside a spindle size tall and 0.8 of that across.
  • It needs no light: it is lit from inside by its core. It is see-through, so it hides no labels.
  • spin turns it slowly about its spine; face and rotation turn it as they turn any object.

The example puts the Constitution-class ship beside it at its real size (305 m, in a scene in units: km), and a beam from the entity's core to the ship:

yaml
type: custom:lcards-astrometrics-card
height: 380
units: km
camera:
  views:
    v:
      target: [-0.8, 0, 0]
      yaw: 0
      tilt: 5
      distance: 5
points:
  - id: entity_at
    xyz: [0, 0, 0]
  - id: ship_at
    xyz: [-2.1, -0.1, 0.3]
    label: USS ENTERPRISE
    style: minor
objects:
  - type: crystalline
    id: entity
    at: entity_at
    spin: 2
  - type: model
    id: ship
    src: builtin:constitution_class_refit
    at: ship_at
  - type: beam
    from: entity_at
    to: ship_at
    width: 10
    color: var(--lcards-moonlight)
    pulse: true
More about the Crystalline Entity
  • The shape: a glowing faceted spine along the object's y axis, a starburst core at its middle with crystal spikes round it, and branches in tiers round the spine that fork again and again, bending a little at each joint and ending in Y-shaped tips and thorns.
  • The crystal: glassy and see-through, lit from inside by the core, with bright edges. The same seed always gives the same entity.
  • Its size: no canon size exists. The production design was two or three Enterprise-D lengths (642 m each), and on screen it dwarfs the ship, so the default is 3 km.
  • From far away: when it would be under about 10 px tall, it is drawn as a dot in the core colour. Nearer, the finer forks draw only once it is large enough on screen to show them.
  • Entities: glow and opacity can follow an entity in place, and a new color crossfades in as every object's does.
  • Reduced motion: the core's pulse and the spin hold still.
KeyTypeDefaultDescription
sizenumber3 kmHeight along the spine: 3 with units: km, converted for other named units, 3000 in plain scene units
seednumber7A different number gives a different branching
branchesnumber4How many times the branches fork, 1 to 5. Each level is smaller; the last are thorns
colorcolourvar(--lcards-blue-medium)The crystal's colour; its edges lean toward the core colour. var(--lcars-african-violet) gives the lavender of the show
glownumber0.7How brightly the core shines and how far its light reaches, 0 to 1. 0: a dim core and only the edges lit. 1: a large bright core lighting the inner branches
opacitynumber10 to 1
blendstringaddadd: overlapping crystal glows. normal: drawn over what is behind it
core.colorcolourvar(--lcards-moonlight)The starburst's rays and the light along the spine
core.periodnumber6Seconds per slow pulse of the core. 0 holds it steady

Released under the MIT License. | About