Skip to main content

Posts

Showing posts with the label JavaScript

Simulation of Gravitational Pull in randomized Solar System

Launched in November 2017. View Project Displays a full solar system with planets doing circular movement due to gravity pull of the sun Written entirely on JavaScript How it works? I used an interval that repeats an algorithm for about 30 miliseconds. The algorithm spawns the point-planets with the position (random(0, canvas.width / 2) , canvas.height / 2) and a starting point towards the bottom of the canvas. Than I used the formulas of my book that calculate the gravitational force with which the planets are pulled towards the sun performing circular orbits. The formula i used for gravitational force is F = planetMass * sunMass * gama / distance^2. To make the orbits circular I set this force equal to circular force F = Mass * Speed / distance; Through that I could define the starting speed of each planet. If you want to see some weird planet orbits try changing the parameters of the browser window on your desktop or by rotating the phone screen if ...

GraphMaker Project

View Project Made with pure JavaScript, HTML and CSS. No external libraries used. Not mobile-friendly yet. GraphMaker.tk is a light weight web framework that can be used to draw mathematical functions on screen real time, allowing the user to understand and experiment with the behaviour of different functions in 2D space. It is fast, reliable and easy to use. If you have found it hard to use, scroll down this page and you find the section on how to use this web application. How it works The way this works is simple and easy to explain, even though the entire project might look like a giant hard-to-make software program. Everything begins with the converting of functions from user input into JavaScript legit functions using the Function ();  Object. All the functions are added in a huge array of functions that are all going to be drawn at the same time in the canvas. Then another part of the program converts the values entered and received from the user...

Snake Game Project

Launched in August 2017. View Project Snake is the common name for a videogame concept where the player maneuvers a line which grows in length, with the line itself being a primary obstacle. Written in pure JavaScript. Use the arrow keys to control the snake and P for pause. Important Update : This game was successfully added to the Facebook app center and is accessible to all users. Click  here  to play this on facebook.

My Private Blog Project

Launched in June 2017. View Project Back end written in PHP, MySQL. Front end written in JavaScript, HTML, CSS. No external libraries were used. MyPrivateBlog is a web platform that enables its users to keep their thoughts, notes, wishes, diary posts, essays, important links from the web, blog posts, unfinished articles etc... in a safe place, accessible from any device with an internet connection at any given moment. With Privacy becoming more and more important in the internet, we use the latest algorithms and the newest technologies to keep your data secure and hide it from spying eyes. You have the control over your posts. You can make new ones, customize and edit the exiting ones, delete the ones you don't line or the ones which you don't want to see in your timeline, you can star important ones and you can pin certain posts to the top of your timeline. Although MyPrivateBlog may seem as a fully established website, we disagree to that as we...