Skip to content

Commit

Permalink
fix cube and cone size
Browse files Browse the repository at this point in the history
  • Loading branch information
lilpacy committed Nov 15, 2024
1 parent a318cd0 commit 0e6abcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion components/HSVCone.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class HSVCone {
this.group.add(this.marker);

// 位置の設定
this.group.position.set(0, 0, 0);
this.group.position.set(0, -0.5, 0);
}

createCone() {
Expand Down
10 changes: 2 additions & 8 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ class ColorVisualizerApp {

setupCameras() {
// RGBカメラの設定
this.rgbCamera.position.set(3, 2, 3);
this.rgbCamera.lookAt(0.5, 0.5, 0.5);
this.rgbCamera.position.set(2, 1.5, 2); // より近くに配置

// HSVカメラの設定
this.hsvCamera.position.set(3, 2, 3);
this.hsvCamera.lookAt(0, 0.5, 0);
this.hsvCamera.position.set(1.5, 1.5, 1.5); // より近くに配置
}

setupControls() {
Expand Down Expand Up @@ -180,10 +178,6 @@ class ColorVisualizerApp {
</div>
</div>
<div id="current-color"></div>
<div class="hsv-view">
<canvas id="hsv-cone" width="200" height="200"></canvas>
<canvas id="hue-slider" width="200" height="20"></canvas>
</div>
</div>
</div>
`;
Expand Down

0 comments on commit 0e6abcc

Please sign in to comment.