merge and build?

This commit is contained in:
tamat
2020-07-25 22:08:57 +02:00
6 changed files with 792 additions and 754 deletions

View File

@@ -238,7 +238,7 @@
c[2] = Math.abs( Math.sin( 0.01 * reModular.getTime() * Math.PI) );
*/
for (var i in result) {
for (var i=0; i < result.length; i++) {
result[i] /= 255;
}

View File

@@ -673,7 +673,7 @@
if (typeof this.str == "string") {
var lines = this.str.split("\\n");
for (var i in lines) {
for (var i=0; i < lines.length; i++) {
ctx.fillText(
lines[i],
this.properties["align"] == "left" ? 15 : this.size[0] - 15,
@@ -704,7 +704,7 @@
this.last_ctx.font =
this.properties["fontsize"] + "px " + this.properties["font"];
var max = 0;
for (var i in lines) {
for (var i=0; i < lines.length; i++) {
var w = this.last_ctx.measureText(lines[i]).width;
if (max < w) {
max = w;