Git Product home page Git Product logo

nature-of-code's Introduction

nature-of-code

This series of assiments belong the "Nature of code" Kadenze MOOC by Daniel Shiffman

Contents

Each week is part of the code submited as part of my work for the course, part of the code are the constructors of the actual Nature Of Code Kadenze examples.

==Note: All the examples, unless the Mandelbrot set example use the event for clicking the mouse, so feel free to click when you're running them==

  • Week 1: Is an unfinished try of creating a butterfly that flaps with Perlin Noise when you click the mouse.
  • Week 2: Is an awesome physics engine to compare two particles' dampening in a substance called gelatin, you can create Stars with a mass, number of points and dampening by clicking. And the Gelatin can be also moved in the screen and change the dragging force applied to the object. You can change the values in the sketch file
  • Week 3: Is a simullation of two steering forces behaviours by Craig Reynolds: Pursue and Arrive. Since the viruses are just pursuing the objective random generated target, the leukocytes are arriving to random viruses.
  • Week 4: Is a drawing of the mandelbrot set in zoom: 1 the recursive function is not an enhancement, it was a requirement for the assignment, you can go deeper the fractal if you increase number of itterations and canvas size.
  • Week 5: Is a genetic algorithm simulation following the viruses example on steering behaviours, but now there's a DNA class for handling fenotype and a Population class which calculates handles the population generations and mutation rate. Fitness is duplicated if the object reaches the target and decreased by 90% if the virus hits an antibiotic. ==Note: If you declare several antibiotics it's going to be difficult to your population to reach the object on the other side of the canvas, but it can and actually the model ran 56 generations to succed with 100 antibiotics in the screen.==

You can report any issues or send a PR if you want.

License

MIT

nature-of-code's People

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.