Skip to content

Commit

Permalink
Merge pull request #5 from debajyoti-iitkgp/hacktoberfest
Browse files Browse the repository at this point in the history
Updated app.js
  • Loading branch information
debajyoti-iitkgp committed Oct 16, 2022
2 parents d7f3cec + 3800b05 commit 278d026
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions just-ui/app.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
// get the canvas element
const canvas = document.getElementById('canvas');

// constants corresponding to the languages
const texts = [
'HTML5', 'Javascript', 'Scala', 'Kotlin', 'Erlang',
'CSS', 'Python', 'Java', 'PostgreSQL', 'MongoDB',
'Android', 'TensorFlow', 'Flask', 'React', 'Redis',
'NodeJS', 'OCaml', 'Redux', 'Rx',
];

// Constants for the counts
const counts = [1,2,4,5,4,2,1];


// constants for the options
const options = {
tilt: Math.PI / 9,
initialVelocityX: 0.09,
Expand All @@ -16,6 +22,7 @@ const options = {
initialRotationZ: 0
};

// create the word sphere
wordSphere(canvas, texts, counts, options);

/**
Expand Down

0 comments on commit 278d026

Please sign in to comment.