module

CryTUI::Widgets::FluxFrames

Frame sequences for FluxSpinner.

Every preset is a plain Array(String), so a caller can pass one of these or any sequence of its own.

Constants

ALL = {"braille" => BRAILLE, "orbit" => ORBIT, "classic" => CLASSIC, "line" => LINE, "block" => BLOCK, "arc" => ARC, "clock" => CLOCK, "moon" => MOON, "triangles" => TRIANGLES, "pulse" => PULSE, "bounce" => BOUNCE, "half" => HALF, "square" => SQUARE, "dice" => DICE, "bar" => BAR, "corners" => CORNERS, "circle-fill" => CIRCLE_FILL, "piston" => PISTON, "star" => STAR, "pair" => PAIR, "diamond" => DIAMOND}

Every preset, in declaration order, paired with its name -- what a gallery or a settings picker enumerates.

ARC = ["◜", "◝", "◞", "◟"] of ::String

Quarter-arc rotation.

BAR = ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"] of ::String

Sub-block glyphs growing from one eighth to full height.

BLOCK = ["▖", "▘", "▝", "▗"] of ::String

Quarter-block rotation.

BOUNCE = ["⠉", "⠒", "⣀", "⠒"] of ::String

A braille row bouncing top to bottom. repeats -- that is the return step.

BRAILLE = ["⣾", "⣷", "⣯", "⣟", "⡿", "⢿", "⣽", "⣻"] of ::String

Full braille cell with one dot missing -- the gap rotates clockwise.

CIRCLE_FILL = ["○", "◔", "◑", "◕", "●"] of ::String

A circle filling clockwise in five stages.

CLASSIC = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"] of ::String

The classic ten-frame braille spinner.

CLOCK = ["◷", "◶", "◵", "◴"] of ::String

Quarter-circle pie slice.

CORNERS = ["┌", "┐", "┘", "└"] of ::String

Box-drawing corners rotating clockwise.

DIAMOND = ["◇", "◈", "◆", "◈"] of ::String

Diamond pulsing hollow to solid; repeats on the way back.

DICE = ["⚀", "⚁", "⚂", "⚃", "⚄", "⚅"] of ::String

Dice faces one through six.

HALF = ["▀", "▐", "▄", "▌"] of ::String

Half-block rotating clockwise.

LINE = ["│", "╱", "─", "╲"] of ::String

Rotating line.

MOON = ["◓", "◑", "◒", "◐"] of ::String

Half-circle moon phase.

ORBIT = ["⠁", "⠈", "⠐", "⠠", "⢀", "⡀", "⠄", "⠂"] of ::String

A single braille dot orbiting clockwise; the visual complement of BRAILLE.

PAIR = ["⠉", "⠘", "⠰", "⢠", "⣀", "⡄", "⠆", "⠃"] of ::String

Two adjacent braille dots rotating around the cell.

PISTON = ["▁", "▃", "▅", "▇", "█", "▇", "▅", "▃"] of ::String

A bar bouncing to full height and back; the middle glyphs repeat.

PULSE = ["⣀", "⣤", "⣶", "⣾", "⣿", "⣾", "⣶", "⣤"] of ::String

Braille fill pulsing up to full density and back.

SQUARE = ["◰", "◳", "◲", "◱"] of ::String

White square with one filled quadrant rotating clockwise.

STAR = ["✶", "✷", "✸", "✹"] of ::String

Four star glyphs increasing in density.

TRIANGLES = ["▲", "▶", "▼", "◀"] of ::String

Filled triangle pointing in four directions.

Class methods

by_name(name : String) : Array(String) | Nil
Source