tela.js 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Experimental graphic library from scratch(software-only), with reference implementation of computer graphics algorithms.
4
4
 
5
+ ![](/tela.png)
6
+
5
7
  ## Purpose
6
8
 
7
9
  The purpose of this graphic engine is to be able to generate images in a computational way, with minimal dependencies, such that the readable graphical algorithms shine instead of opaque graphical APIs. The engine should also be capable to create videos and interactive demos or games.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tela.js",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "author": "Pedroth",
5
5
  "repository": {
6
6
  "type": "git",
@@ -131,7 +131,7 @@ export default class Camera {
131
131
  return Promise
132
132
  .all(parallelWorkers(this, scene, canvas, params))
133
133
  .then(() => {
134
- canvas.paint();
134
+ return canvas.paint();
135
135
  })
136
136
  }
137
137
  }
@@ -130,7 +130,7 @@ export default class Mesh {
130
130
  })
131
131
  }
132
132
 
133
- asPoints(radius = RADIUS) {
133
+ asSpheres(radius = RADIUS) {
134
134
  const points = {};
135
135
  for (let i = 0; i < this.faces.length; i++) {
136
136
  const texCoordIndexes = this