The node pico engine still needs a lot of work, and we invite you to participate in this open-source project (hosted on GitHub).
Extending the libraries
Besides the base language of KRL, supported by the krl-compiler
and the associated run-time system, pico-engine-core
, there are several libraries (sometimes called modules, because the functions they provide are invoked with the same syntax used for user-defined KRL modules). It is relatively easy to extend these so as to add functionality to KRL. This is done by providing JavaScript code to implement a new library function, as shown in the following example.
Motivation: round numbers
...
On the GitHub web site, viewing our pull request, we select a reviewer (near the upper-right corner) and click on that person's name to request a review. Assuming everything is satisfactory, they will accept our change and merge it into the master branch.
Cleaning up
Once your pull request has been reviewed and merged into the master branch, you need to do a little clean-up.
Delete the branch on GitHub, using the button in its UI, if this hasn't already been done by the reviewer.
You can delete your local git
branch using this command:
Code Block |
---|
git branch -d selected-math-functions |