Skip to content

Commit

Permalink
init color
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwenl committed Feb 18, 2024
1 parent 1d6d1e0 commit 2f64a94
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions experiments/darkBlossom/dist/18.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion experiments/darkBlossom/dist/897.bundle.js

This file was deleted.

2 changes: 1 addition & 1 deletion experiments/darkBlossom/dist/bundle.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions experiments/darkBlossom/src/SceneApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import DrawPetals from "./DrawPetals.js";
import DrawSim from "./DrawSim.js";
import DrawFloatingParticles from "./DrawFloatingParticles.js";
import DrawCompose from "./DrawCompose.js";
import ColorThemes from "./ColorThemes";

// pose detection
import PoseDetection, { POSE_FOUND, POSE_LOST } from "./PoseDetection";
Expand Down Expand Up @@ -59,6 +60,12 @@ class SceneApp extends Scene {
// this.orbitalControl.radius.value = radiusLimit;
// this.orbitalControl.radius.setTo(radiusLimit);

const theme = ColorThemes[Config.colorTheme];
console.log(theme);
for (const key in theme) {
Config[key] = theme[key];
}

this.orbitalControl.rx.limit(0.1, -Math.PI / 2 + 0.1);
if (GL.isMobile) {
this.orbitalControl.lock();
Expand Down

0 comments on commit 2f64a94

Please sign in to comment.