Comparing version 0.0.12 to 0.0.14
{ | ||
"name": "cervus", | ||
"version": "0.0.12", | ||
"version": "0.0.14", | ||
"author": "Michał Budzyński <michal@virtualdesign.pl>", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:michalbe/cervus.git", |
@@ -88,5 +88,10 @@ import { create_float_buffer, create_index_buffer } from './context.js'; | ||
set scale(vec) { | ||
this._scale = vec; | ||
math.mat4.scale(this.local_matrix, this.local_matrix, vec); | ||
} | ||
get scale() { | ||
return this._scale; | ||
} | ||
set color(hex) { | ||
@@ -93,0 +98,0 @@ this._color = hex || '#ffffff'; |
128803
9719