https://github.com/dedbox/racket-js-voxel
https://github.com/dedbox/racket-js-voxel
racket voxel-engine
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dedbox/racket-js-voxel
- Owner: dedbox
- Created: 2019-10-02T19:49:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T22:26:07.000Z (almost 4 years ago)
- Last Synced: 2025-03-02T00:34:05.348Z (10 months ago)
- Topics: racket, voxel-engine
- Language: JavaScript
- Size: 616 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Js-Voxel
[](https://pkgd.racket-lang.org/pkgn/package/js-voxel)
[](http://docs.racket-lang.org/js-voxel/)
[](https://travis-ci.org/dedbox/racket-js-voxel)
[](https://coveralls.io/github/dedbox/racket-js-voxel?branch=master)
A general-purpose voxel programming environment.
## Installation and Use
The [`js-voxel`](https://pkgd.racket-lang.org/pkgn/package/js-voxel) package in
the official Racket package repository can be installed from DrRacket's
package manager, or with `raco pkg` from the command line.
```
raco pkg install js-voxel
```
To start using it, set the initial line of your Racket source file to:
```
#lang js-voxel
```
## Examples
Several example programs are included in the
[js-voxel/examples](https://github.com/dedbox/racket-js-voxel/tree/master/examples)
collection.
The easiest way to run one from DrRacket is to run a `racket` program that
`requires` it:
```racket
#lang racket
(require js-voxel/examples/axes)
```
This will open a Web browser to display the program's output. Results of
commands entered into the interactions panel are also displayed in the Web
browser.
To run an example from the command line, run `racket` with the `-l` flag:
```
racket -l js-voxel/examples/axes
```
This will open a Web browser for output. To include a REPL for input, add the
`-i` flag:
```
racket -il js-voxel/examples/axes
```