GithubHelp home page GithubHelp logo

fractal-mountains's Introduction

What are Fractal Mountains?

Fractal mountains are computer generated shapes that have an appearance similar to real life mountains. What is a Fractal? A fractal is a geometric figure that is typically generated through some form of recursion, with a specific function changing the shape several times. How are the Fractal Mountains Generated? We start off by drawing a triangle in 3D space. We must create a coordinate system that can make a 2D plane act as a 3D place. Within our original triangle, we connect the midpoints of each line to form 4 triangles, and then shift each vertice up, down, or diagonally by a randomly generated number. We repeat this process several times (which is where the recursive algorithm comes in) and end up with a fractal mountain Beyond just the recursive formula, I added several features such as colouring methods, and rotation about any axis. This project was a group effort, which involved contribution from my computer science teacher, Mr. Nick Nolfi (misternolfi.com).

fractal-mountains's People

Contributors

amanbrar1999 avatar

Watchers

James Cloos avatar

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.