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/book

Exports of @dioramajs/model/book.

View as Markdown
On this page
import { default, edgeColor, isUrl } from '@dioramajs/model/book'

Functions

edgeColorThe average colour of the left edge of a picture, where the spine meets the cover.
isUrlA colour or a URL of a picture: a URL has a dot or a slash and is no CSS function.
measureBoard, page block and overhang of a book of `pages` pages.

Constants

defaultA cover image made a 3D book: it turns to show its spine and opens a little under the pointer.
PAGEThickness of one page in cover heights: 320 pages of a 6 × 9 in book are 16 mm.

Interfaces

MeasureSizes of a book in cover heights.