GithubHelp home page GithubHelp logo

cevataykans / interactive-koch-curve Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22 KB

Implementation of an interactive system using WebGL where a fractal is displayed.

Home Page: https://cevataykans.github.io/interactive-koch-curve/

License: MIT License

JavaScript 88.98% HTML 11.02%

interactive-koch-curve's Introduction

Interactive Koch Curve Generator

About

This small project is about displaying Koch curves using WebGL. The user draws an arbitrary convex shape and applies the Koch curve to the edges. This way, the new shape must be generated and rendered using WebGL. The purpose of this project is to study the fundamentals of WebGL. This project enabled me to understand how data is sent to the GPU using buffers and how the points are rendered.

Features

  • Koch curve algorithm up to 7 iterations.
  • Fully customizable background / curve color.
  • Saving/loading system. You can save your piece of art and reload it later.
  • Simple UI.
  • Fault tolerance.

How to Use

•	Click on the canvas to draw an arbitrary convex shape.
•	Click until the shape is complete.
•	When the shape is drawn, you can no longer manipulate it.
•	If you would like to draw another shape, clear it.
•	If you do not want to lose the shape, save it before clearing.
•	Set the number of iterations after the shape is drawn.
•	Click on the apply rule button.
•	You can play with the iteration count and re-apply it any time to observe differences.
•	At any time you can change background and curve color by clicking on respective color icons.
•	You can load your favorite saved shapes from your device.

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.