Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Aug 27, 2023
1 parent bac20d0 commit 324812c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ If Charming is properly installed, you should get a _lucky clove_ as below 🎉:

## API Reference

### [Creating Application](#creating-application-1)
### Creating Application

Rendering app into DOM and animate it.
Rendering app into DOM and animate it. ([more](#creating-application-1))

- [cm.**app**](#cm-app)
- [app.**render**](#app-render)
- [app.**frame**](#app-frame)
- [app.**start**](#app-start)
- [app.**stop**](#app-stop)

### [Setting Attributes](#setting-attributes-1)
### Setting Attributes

Controlling the aesthetic appearance of the shapes.
Controlling the aesthetic appearance of the shapes. ([more](#setting-attributes-1))

- [app.**scene**](#app-scene) - Sets the specified css _color_ used for the background of the rendering context of the app and returns this app.
- [app.**background**](#app-background) - Sets the specified color (_ch_, _fg_, _bg_) used for the background of the app in cells and returns this app.
Expand All @@ -107,18 +107,18 @@ Controlling the aesthetic appearance of the shapes.
- [app.**noFill**](#app-nofill) - Disables drawing the fill of shapes and returns this app.
- [cm.**wide**](#cm-wide) - Marks the _ch_ as a wide character and returns the marked code point of it.

### [Drawing Shapes](#drawing-shapes-1)
### Drawing Shapes

Adding primitives, vertices, and curves to app.
Adding primitives, vertices, and curves to app. ([more](#drawing-shapes-1))

- [app.**point**](#app-point) - Draws a single cell at the specified coordinates (x, y) and returns this app.
- [app.**line**](#app-line) - Draws a straight path from the specified coordinates (_x_, _y_) to coordinates (_x1_, _y1_) and returns this app.
- [app.**rect**](#app-rect) - Draws a rectangle at the specified coordinates (_x_, _y_) with specified _width_ and _height_ and returns this app.
- [app.**pixels**](#app-pixels) - Draws pixels specified by the _render_ function at the specified coordinates (_x_, _y_) and returns this app.

### [Applying Transformations](#applying-transformations-1)
### Applying Transformations

Transforming shapes.
Transforming shapes. ([more](#applying-transformations-1))

- [app.**translate**](#app-translate)
- [app.**scale**](#app-scale)
Expand All @@ -128,13 +128,13 @@ Transforming shapes.

### [Control Flow](#control-flow-1)

A more declarative programming style.
A more declarative programming style. ([more](#control-flow-1))

- [app.**call**](#app-call) - Calls the specified function on this app with any optional arguments and returns this app.

### [Instance Properties](#instance-properties-1)
### Instance Properties

State of the app.
State of the app. ([more](#instance-properties-1))

- [app.**node**](#app-node) - Returns the canvas used to render the app.
- [app.**cols**](#app-cols) - Returns the number of columns in the terminal.
Expand Down

0 comments on commit 324812c

Please sign in to comment.