You'll need to install optipng first. brew install optipng
if you have http://brew.sh/ installed.
This script requires base64 --version 1.5. You may need to install it using homebrew too.
Add/ remove any resources
Run ./compile_resources.sh
to update the references in resource.json
All configurable controls should be registered with the ToolLayer's registerControl(id, control)
method.
References to tools can then be fetched by using getControl(id)
or getControls(pattern)
.
All tools should respond to setQuestion(question)
and getState()
.
tools/tests/tools_base
into it's own folder outside of the projectgit init
git submodule add {{REPO_URL}} tools/{{TOOL_NAME}}
tools-basis/web-client/host/main.js
tools-basis/web-client/host/main.js
Content service will send:
Tool will be able to:
Stacked sprite creates a node with sprites stacked on top of each other from an object in the following format:
{
layers:[
{
filename (optional): string,
color (optional):{r: int, g: int, b: int, a},
height (when color): int,
width (when color): int,
priority (optional): int,
position (optional):{x: int, y: int}
},
...
],
}
The filenames are those in resource.json