remove debug log

This commit is contained in:
Mylloon 2022-11-22 10:41:38 +01:00
parent 961274e8f5
commit 65a8411801
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 0 additions and 2 deletions

View file

@ -4,7 +4,6 @@ import { textureGradient } from "./utils.js";
export class Plane extends Element { export class Plane extends Element {
constructor(width, height, color1, color2) { constructor(width, height, color1, color2) {
super(); super();
console.log(width, height);
const Tcolor1 = new THREE.Color(color1); const Tcolor1 = new THREE.Color(color1);
const Tcolor2 = new THREE.Color(color2); const Tcolor2 = new THREE.Color(color2);

View file

@ -4,7 +4,6 @@ export const textureGradient = (width, height, color1, color2) => {
const ctx = cnv.getContext("2d"); const ctx = cnv.getContext("2d");
ctx.rect(0, 0, cnv.width, cnv.height); ctx.rect(0, 0, cnv.width, cnv.height);
console.log(width, height);
const gradient = ctx.createLinearGradient(0, 0, width / 4, 15 * height); const gradient = ctx.createLinearGradient(0, 0, width / 4, 15 * height);
gradient.addColorStop(0, color1); gradient.addColorStop(0, color1);
gradient.addColorStop(1, color2); gradient.addColorStop(1, color2);