소스 검색

paint space color

Nikolay Suslov 4 년 전
부모
커밋
08c7929521
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      public/defaults/worlds/paint/controller.js
  2. 1 1
      public/defaults/worlds/paint/index.vwf.yaml

+ 2 - 2
public/defaults/worlds/paint/controller.js

@@ -1,13 +1,13 @@
 this.triggerdown = function(){
     let scene = this.getScene();
-    this.pointer.material.color = "black";
+    this.pointer.material.color = "white";
     this.penDown = true;
     this.penName = 'drawNode-' + scene.GUID();
     scene.createDrawNode(scene.drawBox, this.penName, "#f9f9f9", 0.007, "0 0 0");
 }
 
 this.triggerup = function(){
-    this.pointer.material.color = "white";
+    this.pointer.material.color = "green";
     this.penDown = false;
 }
 

+ 1 - 1
public/defaults/worlds/paint/index.vwf.yaml

@@ -82,7 +82,7 @@ children:
         extends: http://vwf.example.com/aframe/aMaterialComponent.vwf
         type: "component"
         properties:
-          color: "#3c7249"
+          color: "#6aa171"
       pointer:
         extends: http://vwf.example.com/aframe/abox.vwf
         properties: