This commit is contained in:
Devine Lu Linvega 2017-09-27 13:59:41 +13:00
parent 1267aa4c84
commit 18d74479a2
2 changed files with 23 additions and 10 deletions

View File

@ -8,32 +8,45 @@ Ronin is a simple open-source graphic design tool.
- `size`, default 4
- `color`, default #000
- `opacity`, default 1
### Methods
### Ports
- `->speed`{false,true}, **0/50** The cursor speed.
- `->distance`{false,true}, **0/null** The cursor distance.
- `->red`{true,true}, **0/255** The brush color value(red).
- `->green`{true,true}, **0/255** The brush color value(green).
- `->blue`{true,true}, **0/255** The brush color value(blue).
- `->speed` *false,true* **0/50** The cursor speed.
- `->distance` *false,true* **0/null** The cursor distance.
- `->red` *true,true* **0/255** The brush color value(red).
- `->green` *true,true* **0/255** The brush color value(green).
- `->blue` *true,true* **0/255** The brush color value(blue).
## eraser
### Settings
### Methods
### Ports
## frame
### Settings
- `width`, default 930
- `height`, default 540
### Methods
- `resize:`, no details.
- `rescale:`, no details.
- `crop:`, no details.
### Ports
## line
### Settings
- `steps`, default 100
### Methods
- `tween:`, no details.
- `stroke:`, no details.
### Ports
## License
See the [LICENSE](LICENSE.md) file for license rights and limitations (CC).

View File

@ -37,11 +37,11 @@ function Docs()
for(module_name in modules){
var module = modules[module_name];
html += "## "+module_name+"\n";
html += this.print_settings(module.settings);
html += this.print_methods(module.methods);
html += this.print_ports(module.ports);
html += this.print_settings(module.settings)+"\n";
html += this.print_methods(module.methods)+"\n";
html += this.print_ports(module.ports)+"\n";
}
return html;
return html+"\n";
}
this.print_settings = function(settings)
@ -73,7 +73,7 @@ function Docs()
for(port_name in ports){
var port = ports[port_name];
console.log(ports);
html += "- `->"+port.name+"`{"+port.input+","+port.output+"}, **"+port.value+"/"+port.max+"** "+port.docs+".\n";
html += "- `->"+port.name+"` *"+port.input+","+port.output+"* **"+port.value+"/"+port.max+"** "+port.docs+".\n";
}
return html;
}