Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

@dioramajs/model/coin

Exports of @dioramajs/model/coin.

View as Markdown
On this page
import { default, flipPose, SHAPES } from '@dioramajs/model/coin'

Functions

flipPoseRotation of the flip part at `t` 0..1 of a turn from face `from` (0 front, 1 back): a flip turns about the vertical, a toss tumbles about the horizontal while it rolls half a turn, so it lands as the flip does, the other face upright. Returns [x, y, z, lift in diameters].

Constants

defaultA coin, a medal or a token struck from one or two pictures: a logo or a photo on a metal disc with a rim, that turns under a drag, the scroll or on its own, catches the light and flips on a click.
SHAPESThickness, bevel, rim width and rim height of each style, in diameters.

Types