Ornaments
These are Apas Cloud services: they run on our servers for a signed-in member. The examples below are shown already made; sign in to edit and run your own.
mandalaOn Apas Cloud
A mandala of the given radius at (x, y): rings of petals in gold outline (every second ring filled with an accent at 30%), circles between the rings and 48 gold dots on the rim, all in one group `mandala` so a page can turn or fade it. Without `rings` the stage's four rings are used.
d (diagram) --
x (number) --
y (number) --
radius (number) -- the mandala's radius, world units
rings (list) -- optional [[count, inner, outer[, halfWidth]], ...]: petals in each ring, its inner and outer radius and the petal's half-width (default 0.3 of the ring's depth)
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
lampOn Apas Cloud
A diya at (x, y): a clay bowl of half-width `size` with a gold rim and beads, a ground glow, a halo (group `halo`) and a three-tongued flame (group `flame`). With `t` (seconds) the flame flickers as the video stage's does, for an animate() frame.
d (diagram) --
x (number) -- the middle of the rim
y (number) --
size (number) -- half the bowl's width
t (number) -- optional time in seconds; the flame skews and stretches with it
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
garlandOn Apas Cloud
A string of lights from x0 to x1 at height y: a wire hanging in `scallops` scallops `drop` deep, `perScallop` bulbs on each in the accents, each with a soft halo. Groups `wire`, `halos`, `bulbs`.
d (diagram) --
x0 (number) --
x1 (number) --
y (number) -- where the wire is fixed
scallops (number) --
drop (number) -- how far the middle of a scallop hangs below y
perScallop (number) -- bulbs on each scallop, default 6
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
burstOn Apas Cloud
A firework burst at (x, y) reaching `reach` with `rays` rays, drawn `age` seconds after it went off: the rays fly out, fall and fade over 1.9 s (nothing before 0 or after 1.9). Every third ray is gold, the others accent `accent`. Group `burst` with the fade as its opacity.
d (diagram) --
x (number) --
y (number) --
reach (number) -- how far the rays fly
rays (number) --
age (number) -- seconds since the burst
accent (number) -- optional 0 to 4, which accent colours the rays
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
borderOn Apas Cloud
An ornamental border `inset` world units inside the diagram's box: a rounded gold line and, for "double" (default), a thinner one further in. `progress` 0 to 1 draws it that far round from the top left (the stage's draw-on). Group `border`.
d (diagram) --
inset (number) --
style (string) -- optional "double" (default) or "single"
progress (number) -- optional 0 to 1, default 1
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
rangoliOn Apas Cloud
A rangoli in colour at (x, y): filled rings of petals in the accents round an open centre of radius `hole` (for a picture or words), powder-white outlines and dots. Group `rangoli`.
d (diagram) --
x (number) --
y (number) --
radius (number) --
hole (number) -- optional radius of the open centre, default 0.375 radius
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
toranOn Apas Cloud
A marigold toran from x0 to x1 hung at height y, sagging `sag` at its middle: sixteen orange and yellow flowers with leaves along the curve and `strands` strands of flowers hanging from it, each in a group `strand-1`, `strand-2`, ... so a page can swing it.
d (diagram) --
x0 (number) --
x1 (number) --
y (number) --
strands (number) --
sag (number) -- optional, default 46/1080 of the width
lanternOn Apas Cloud
A sky lantern at (x, y) of half-height `size`: a glow (group `glow`), a paper body lit from inside, a base and a flame (group `flame`).
d (diagram) --
x (number) --
y (number) --
size (number) -- half the lantern's height
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
skylineOn Apas Cloud
A rooftop skyline from x0 to x1 standing on `ground`, buildings up to `height` tall with domes, lit windows and roof lamps; `seed` fixes the scatter. Group `halos` holds the roof lamps' glow.
d (diagram) --
x0 (number) --
x1 (number) --
ground (number) -- the y the buildings stand on
height (number) -- the tallest building
seed (number) -- optional, default 9
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
balloonOn Apas Cloud
A balloon at (x, y) (the body's centre) of half-height `size` in `colour`, with a highlight, a knot and a string. Group `balloon`.
d (diagram) --
x (number) --
y (number) --
size (number) -- half the body's height
colour (string) -- optional, default the party pink
buntingOn Apas Cloud
Bunting from x0 to x1 hung at height y: a rope sagging `sag` at its middle and `count` triangular flags in the accents, each in a group `flag-1`, `flag-2`, ...; the rope in `rope`.
d (diagram) --
x0 (number) --
x1 (number) --
y (number) --
count (number) -- flags
sag (number) -- optional, default 70/1080 of the width
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
confettiOn Apas Cloud
Confetti in the box (x0, y0)-(x1, y1): `count` turned pieces about `piece` across, scattered by `seed`, at time `t` of their fall (0: as scattered; in a frame pass the time and they drift down, sway and spin). Group `confetti`.
d (diagram) --
x0 (number) --
y0 (number) --
x1 (number) --
y1 (number) --
count (number) --
piece (number) -- optional size of a piece, default a sixtieth of the width
seed (number) -- optional, default 2
t (number) -- optional time in seconds, default 0
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
heartShapeOn Apas Cloud
A heart at (x, y) (its centre) of half-height `size` filled with `colour`. Group `heart`. (The organ is schematicOn(d, "heart", ...).)
d (diagram) --
x (number) --
y (number) --
size (number) -- half the heart's height
colour (string) -- optional, default the maroon palette's rose
cakeOn Apas Cloud
A two-tier cake at (x, y) (the middle of the lower tier's top edge) of half-width `size`, with icing, dots and five lit candles whose flames are groups `flame-1` to `flame-5`; with `t` (seconds) they flicker. Default palette "party".
d (diagram) --
x (number) --
y (number) --
size (number) -- half the lower tier's width
t (number) -- optional time in seconds
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
laurelOn Apas Cloud
A laurel wreath about (x, y) of radius `radius`: two arcs of eleven gold leaves from the bottom up each side, open at the top, in groups `left` and `right`.
d (diagram) --
x (number) --
y (number) --
radius (number) --
colours (string or list) -- optional palette: "maroon" (default) or "party", or a list of up to ten colours [gold light, gold mid, gold dark, accent 1 to 5, back dark, back darker]
schematicOn Apas Cloud
A labelled organ schematic with flow arrows (R261), as NCERT Science X Chapter 5 draws them: "heart" (four chambers, the body's right on the viewer's left, vena cava, pulmonary artery and veins, aorta, valves; blue oxygen-poor, red oxygen-rich), "nephron" (Bowman's capsule and glomerulus, afferent and efferent arterioles, proximal tubule, loop of Henle, distal tubule, collecting duct, capillaries), "alveolus" (a bronchiole ending in three air sacs with the capillary round one, O2 and CO2), "gut" (the alimentary canal with liver, gall bladder and pancreas). The picture fills a box 2·size wide and high about `point`; word labels stand in columns about 1.3·size beyond the box on each side with leader lines, so leave that room in the diagram. Every part is a named group (`heart-left-ventricle`, `nephron-loop`, `labels`, ...).
d (diagram) --
kind (string) -- "heart", "nephron", "alveolus" or "gut"
point (point2d) -- the centre of the picture
size (number) -- half the picture's width and height
labels (string) -- optional "words" (default: names beside the picture with leader lines), "numbers" (numbered markers and a key, for a label-the-diagram question) or "none"
flow (string) -- optional "flow" (default: arrows for blood, filtrate, air, food) or "still"