#servo-experiments #####A collection of experiments for Servo. Get Servo Nightly.
These demos aim to show off Servo's rendering capabilities.
- The easiest way to run Servo is to get Servo nightly.
- Alternately, clone source from the Servo repos. and follow instructions there.
If running from source we recommend using
./mach run -r -w [URL]
The -r
specifies to use the version compiled for release and the -w
enables WebRender.
To see FPS and other stats, run using
./mach run -w -r -- -Z wr-stats [URL]
##Contributions Welcome Add an experiment by branching and then submitting a PR.
Demos live in the experiments
directory and are described in experiments.json
.
An experiment should have its own folder in the experiments
directory and should minimally contain:
index.html
- entry point for the experimentthumb.png
- this file will be used as a screenshot of the demo for use on the homepage. It should be square and not too large.
The experiment should be described in experiments.json
by a JSON object with the fields:
name
- The name of the experiment.desc
- A short text description of the experiment.href
- The directory of the experiment e.g.experiments/foo
.
For example, for a new experiment super-cool-experiment
:
experiments/super-cool-experiment/index.html
is the entry point of the experiment.experiments/super-cool-experiment/thumb.png
is a square screenshot of the experiment in action, which is used to display the experiment on the homepage.
and the following JSON would be added to experiments.json
:
{
"name": "Super Cool Experiment",
"desc": "A super cool experiment which does interesting arbitrary things.",
"href": "experiments/super-cool-experiment/"
}