Coder Social home page Coder Social logo

traffic's Introduction

介绍

本项目通过web方式进行模拟十字路口道路拥挤状况,实现红绿灯时长智能调控算法,优化通行吞吐率,提升通行效率。

本项目是基于codepen二次开发的源码canvas-traffic的基础上进行的三次开发,定制部分包括:

  • 车辆按照指定概率随机从4个车道驶入
  • 红绿灯时间按照智能算法动态调整
  • 提供单个十字路口的通行效率统计信息

演示效果如下: image

预览

node环境,全局安装parcel

  • parcel traffic2.0.html 预览改造完成页面
  • parcel traffic.html 预览原作者页面

原作者代码在单一JS内,可读性较低,iffor嵌套深,代码的模块化重构本人正在进行中。

traffic's People

Contributors

jayzhang avatar wookaoer avatar

Watchers

 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.