crystal - Man Page
kaleidescope.
Examples (TL;DR)
- Run a Crystal file:
crystal path/to/file.cr
- Compile a file and all dependencies to a single executable:
crystal build path/to/file.cr
- Read Crystal source code from the command-line or
stdin
, and execute it:crystal eval 'code'
- Generate API documentation from inline docstrings in Crystal files:
crystal docs
- Compile and run a Crystal specification suite:
crystal spec
- Start a local interactive server for testing the language:
crystal play
- Create a project directory for a Crystal application:
crystal init app application_name
- Display all help options:
crystal help
Synopsis
crystal [--display host:display.screen] [--visual visual] [--window] [--root] [--window-id number] [--grid] [--no-cell] [--centre] [--nx number] [--ny number] [--count number] [--delay number] [--ncolors number] [--fps]
Description
Moving polygons, similar to a kaleidescope (more like a kaleidescope than the hack called `kaleid,' actually.)
Options
- --visual visual
Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
- --window
Draw on a newly-created window. This is the default.
- --root
Draw on the root window.
- --window-id number
Draw on the specified window.
- --grid | --no-grid
Whether to draw grid.
- --cell | --no-cell
Whether to draw the cell.
- --centre | --no-centre
Whether to center on screen
- --nx number
Horizontal Symmetries. -10 - 10. Default: -3.
- --ny number
Vertical Symmetries. -10 - 10. Default: -3.
- --count number
Count. -5000 - 5000. Default: -500.
- --delay number
Per-frame delay, in microseconds. Default: 60000 (0.06 seconds.).
- --ncolors number
Number of Colors. Default: 100.
- --fps
Display the current frame rate and CPU load.
Environment
- DISPLAY
to get the default host and display number.
- XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
- XSCREENSAVER_WINDOW
The window ID to use with --root.
See Also
X(1), xscreensaver(1)
Copyright
Copyright © 2002 by Jouk Jansen. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Author
Jouk Jansen.