Skip to content

Commit

Permalink
remove typo in web; add installation section in doc; clean up counter…
Browse files Browse the repository at this point in the history
…-up demo
  • Loading branch information
manuelbarzi committed Dec 28, 2023
1 parent 2f82db9 commit 6a912d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

Object-oriented Component-based UI JavaScript library for HTML Canvas (inspired by Java Swing)

##### Usage
## Installation

```sh
$ npm i @b00tc4mp/wings
```

## Usage

```html
<!-- create a canvas in html -->
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>Wings</h1>
<main>
<h2>Intallation</h2>

<pre><code class="language-sh">$ npm i @b00tc4mp/wings --hello</code></pre>
<pre><code class="language-sh">$ npm i @b00tc4mp/wings</code></pre>

<h2>Usage (example)</h2>

Expand Down
2 changes: 0 additions & 2 deletions scripts/counter-up.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
constructor() {
super()

// set the dimensions
this.width = this.height = 50

// set colors
this.backgroundColor = 'magenta'
this.borderColor = 'cyan'
this.borderWidth = 5
Expand Down

0 comments on commit 6a912d7

Please sign in to comment.