From 3e9cb56089e15cdd6522f8c62d783ceae5ae9c94 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sat, 20 Jul 2019 17:01:12 +0900 Subject: [PATCH] Updated library --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 47e2a26..ce45dda 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ npm start - `(stroke ~shape)` Strokes a shape. - `(fill ~rect)` Fills a shape. - `(clear ~rect)` Clears a rect. +- `(concat ...items)` - `(add ...args)` Adds values. - `(sub ...args)` Subtracts values. - `(mul ...args)` Multiplies values. @@ -60,7 +61,7 @@ npm start - `(or a b ...rest)` Returns true if at least one condition is true. - `(map fn arr)` - `(filter fn arr)` -- `(reduce fn arr ~acc)` +- `(reduce fn arr acc)` - `(len item)` Returns the length of a list. - `(first arr)` Returns the first item of a list. - `(last arr)` Returns the last @@ -72,7 +73,7 @@ npm start - `(frame)` Returns a rect of the frame. - `(center)` Returns a position of the center of the frame. - `(scale rect w h)` -- `(resize w h)` Resizes the canvas to target w and h, returns the rect. +- `(resize w h ~fit)` Resizes the canvas to target w and h, returns the rect. - `(rescale w h)` Rescales the canvas to target ratio of w and h, returns the rect. - `(crop rect)` - `(clone a b)` @@ -84,12 +85,15 @@ npm start - `(echo ...args)` - `(str ...args)` - `(open path)` Imports a graphic file and resizes the frame. -- `(folder ~path)` Returns the content of a folder path. +- `(path ~path)` Returns the content of a folder path. +- `(folder ~path)` Returns the path of the current folder. +- `(ls ~path)` Returns the content of a folder path. - `(exit ~force)` Exits Ronin. - `(time)` Returns timestamp in milliseconds. - `(animate ~play)` Toggles animation. - `(js)` Javascript interop. - `(test name a b)` +- `(benchmark fn)` logs time taken to execute a function ## Extras