Minor improvements

This commit is contained in:
schmelczerandras 2020-09-27 17:39:43 +02:00
commit 86df753c79
3 changed files with 23 additions and 19 deletions

View file

@ -30,7 +30,7 @@ export class BlobScene implements Scene {
ambientLight: rgb255(89, 25, 115),
colorPalette: [
rgb255(0, 0, 0),
rgb255(0, 0, 0),
rgb255(119, 143, 120),
rgb255(119, 143, 120),
rgb255(224, 96, 126),
],

View file

@ -1,4 +1,4 @@
import { vec2, vec3 } from 'gl-matrix';
import { vec2 } from 'gl-matrix';
import { CircleLight, compile, Renderer, Tunnel } from 'sdf-2d';
import { prettyPrint } from '../../helper/pretty-print';
import { rgb } from '../../helper/rgb';
@ -34,13 +34,8 @@ export class RainScene implements Scene {
this.renderer.setRuntimeSettings({
ambientLight: rgb(0.2, 0.2, 0.2),
backgroundColor: vec3.fromValues(1, 1, 1),
colorPalette: [
rgb(1, 1, 1),
vec3.fromValues(0.3, 1, 1),
rgb(1, 1, 0),
rgb(0.3, 1, 1),
],
backgroundColor: rgb(1, 1, 1),
colorPalette: [rgb(1, 1, 1), rgb(0.3, 1, 1), rgb(1, 1, 0), rgb(0.3, 1, 1)],
});
for (let i = 0; i < (canvas.getBoundingClientRect().width / 800) * 20; i++) {

View file

@ -5,6 +5,7 @@ import { last } from '../helper/last';
import { prettyPrint } from '../helper/pretty-print';
import { Random } from '../helper/random';
import { rgb } from '../helper/rgb';
import { rgba } from '../helper/rgba';
import { Scene } from './scene';
export class TunnelScene implements Scene {
@ -78,7 +79,7 @@ export class TunnelScene implements Scene {
this.renderer.setRuntimeSettings({
isWorldInverted: true,
ambientLight: rgb(0.35, 0.1, 0.45),
backgroundColor: rgb(1, 1, 1),
backgroundColor: rgba(1, 1, 1, 1),
colorPalette: [rgb(0.4, 0.5, 0.6), rgb(0, 0, 0), rgb(0, 0, 0), rgb(0, 0, 0)],
});