GithubHelp home page GithubHelp logo

lexo-dat / flowfieldsproject Goto Github PK

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

The main idea of this project is to create a React module that allows me to set the background of the page to display the "flow fields" effect. This effect consists of a matrix where each cell contains a vector indicating the direction of the particles.

HTML 4.95% JavaScript 93.41% CSS 1.63%

flowfieldsproject's Introduction

Flow Field Particle System

A simple particle system with a flow field effect using HTML5 Canvas and JavaScript.

Description

This project creates a flow field particle system on an HTML5 canvas. Each particle is influenced by a flow field, resulting in dynamic and visually appealing patterns. You can customize the number of particles, cell size, zoom, and curve parameters to create different effects.

Installation

  1. Clone the repository:

    git clone https://github.com/lexO-dat/flow-field-particle-system.git
  2. Open index.html in your web browser.

Usage

  1. Open index.html in a web browser.
  2. Experiment with the flow field parameters using the commented-out input elements (zoomInput and curveInput) in the HTML file.
  3. Observe the mesmerizing patterns created by the flow field particle system.

Customization

Adjust the following parameters in the Effect class to customize the visual output:

  • numberParticles: Number of particles in the system.

  • cellSize: Size of each cell in the flow field.

  • zoom: Zoom factor affecting the flow field.

  • curve: Curve factor influencing the flow field.

  • Adjust the trigonometric functions in the Effect class to influence the flow field (line 94):

    // Customize the trigonometric functions or experiment with another func
    this.xSpeed = Math.cos(angle);
    this.ySpeed = Math.sin(angle);

flowfieldsproject's People

Contributors

lexo-dat avatar

Watchers

 avatar

Forkers

nacho1240

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.