1
1
# ![ ml5] ( https://user-images.githubusercontent.com/10605821/41332516-2ee26714-6eac-11e8-83e4-a40b8761e764.png )
2
2
3
- [ ![ BrowserStack Status] ( https://www.browserstack.com/automate/badge.svg?badge_key=QVNDdlkvMzNYSmhRRWlweXlIOTBENkd0MDBCOUJlbmFVZFRneFIzNlh4az0tLXA4S0loSGNlVUc2V2I3cVdLdXBKdGc9PQ==--8a5e5bfd3eafbba0702c02ec57ffec9d627a78ef )] ( https://www.browserstack.com/automate/public-build/QVNDdlkvMzNYSmhRRWlweXlIOTBENkd0MDBCOUJlbmFVZFRneFIzNlh4az0tLXA4S0loSGNlVUc2V2I3cVdLdXBKdGc9PQ==--8a5e5bfd3eafbba0702c02ec57ffec9d627a78ef ) [ ![ Version] ( https://img.shields.io/npm/v/ml5.svg?style=flat-square )] ( https://www.npmjs.com/package/ml5 )
3
+ [ ![ BrowserStack Status] ( https://www.browserstack.com/automate/badge.svg?badge_key=QVNDdlkvMzNYSmhRRWlweXlIOTBENkd0MDBCOUJlbmFVZFRneFIzNlh4az0tLXA4S0loSGNlVUc2V2I3cVdLdXBKdGc9PQ==--8a5e5bfd3eafbba0702c02ec57ffec9d627a78ef )] ( https://www.browserstack.com/automate/public-build/QVNDdlkvMzNYSmhRRWlweXlIOTBENkd0MDBCOUJlbmFVZFRneFIzNlh4az0tLXA4S0loSGNlVUc2V2I3cVdLdXBKdGc9PQ==--8a5e5bfd3eafbba0702c02ec57ffec9d627a78ef ) [ ![ Version] ( https://img.shields.io/npm/v/ml5.svg?style=flat-square )] ( https://www.npmjs.com/package/ml5 )
4
4
[ ![ Twitter Follow] ( https://img.shields.io/twitter/follow/espadrine.svg?style=social&label=Follow )] ( https://twitter.com/ml5js )
5
5
6
6
@@ -17,14 +17,24 @@ ml5.js is heavily inspired by [Processing](https://processing.org/) and [p5.js](
17
17
18
18
## Usage
19
19
20
- Download the [ minified] ( https://raw.githubusercontent.com/ml5js/ml5-library/master/dist/ml5.min.js ) or use the online version and add it to the head section of your HTML document:
20
+ There are several ways you can use the ml5.js library:
21
+
22
+ * You can use the latest online version by adding it to the head section of your HTML document:
21
23
22
24
``` javascript
23
- < script src= " ml5.min.js" type= " text/javascript" >< / script>
25
+ < script src= " https://unpkg.com/ml5@latest/dist/ ml5.min.js" type= " text/javascript" >< / script>
24
26
```
25
- or
27
+
28
+ * Or you can use an specific version of the library:
29
+
26
30
``` javascript
27
- < script src
= " https://unpkg.com/[email protected] /dist/ml5.min.js" type
= " text/javascript" >< / script
>
31
+ < script src
= " https://unpkg.com/[email protected] /dist/ml5.min.js" type
= " text/javascript" >< / script
>
32
+ ```
33
+
34
+ * Or you can download the [ minified] ( https://raw.githubusercontent.com/ml5js/ml5-library/master/dist/ml5.min.js ) and include the file:
35
+
36
+ ``` javascript
37
+ < script src= " ml5.min.js" type= " text/javascript" >< / script>
28
38
```
29
39
30
40
## Resources
37
47
38
48
## Standalone Examples
39
49
40
- You can find a collection of standalone examples in this repository: [ github.com/ml5js/ml5-examples] ( https://github.com/ml5js/ml5-examples )
50
+ You can find a collection of standalone examples in this repository: [ github.com/ml5js/ml5-examples] ( https://github.com/ml5js/ml5-examples )
41
51
42
52
These examples are meant to serve as an introduction to the library and machine learning concepts.
43
53
@@ -46,9 +56,3 @@ These examples are meant to serve as an introduction to the library and machine
46
56
See [ CONTRIBUTING] ( CONTRIBUTING.md )
47
57
48
58
Thanks [ BrowserStack] ( https://www.browserstack.com/ ) for providing testing support.
49
-
50
-
51
-
52
-
53
-
54
-
0 commit comments