Git Product home page Git Product logo

atomos-sketch's Introduction

Átomos

Click here to see it in action.


This is a simple program that displays a small part of the periodic table, with a visual representation of the atom, displayed in the basic Bohr model.

The program shows how many particles of each type are in the nucleus and how many are orbiting the nucleus in the outer shells, as well as the number of shells, for different kinds of atoms.

The code is fairly extensively commented and I created it while learning JavaScript and p5.js so it's nothing special, efficient, elegant or hard to understand.


The important files are:

  • index.html: Main html file containing all the elements: buttons, p5 canvas, description. etc
  • atomos-sketch.js: First JavaScript sketch called in the .html file, contains most of the code, functions and variables.
  • lang.js: Second JavaScript sketch called in the index. Contains the translations and language changing functions.
  • libraries folder: Contains the p5.js libraries, also called in the HTML file, necessary to run all of the p5 functions inside the code. To update them and use newer functions, just download the newest version from the p5.js website.
  • imgs folder: Contains the images used in the project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.