Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 31, 2024
1 parent 7fcf706 commit 5dd315f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions Custom/entities/grille.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// creates a grille entity
// called when entity is added to the scene
function createGrille() {
function createGrill() {
let el = document.createElement('a-entity'); /* creates entity */

/* get random colors */
Expand All @@ -21,8 +21,7 @@ function createGrille() {
/* draws grille */
function drawGrille(width,height,numBars,color1, color2,parent){
/* creates evenly spaced planes that alternate between some color and black */
console.log(color1)
console.log(color2)

var j = 0;
var isBlack = false;
while(j < numBars){
Expand Down Expand Up @@ -75,9 +74,9 @@ function editGrille(ent) {
i--;
}

drawGrille(parseFloat($("#width").val()),parseFloat($("#height").val()),parseFloat($("#numBarsIn").val()),$("#color").val(),$("#color2").val(),ent);
drawGrille(parseFloat($("#width").val()),parseFloat($("#height").val()),parseFloat($("#numBarsIn").val()),hexToRgb($("#color").val()),hexToRgb($("#color2").val()),ent);

ent.setAttribute('color2',{val: $("#color2").val()})

return true;
}
}
4 changes: 2 additions & 2 deletions Custom/utils/localStorage/addPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ async function changeUrl(){
}
names[packageSelect.value][currName] = names[packageSelect.value][currName] ? names[packageSelect.value][currName] + 1 : 1;
});

}
// condensed function to get size of a string
function ByteSize(str){
return new Blob([str]).size
}
}

0 comments on commit 5dd315f

Please sign in to comment.