# Perceptron in JavaScript

**URL:** <https://discourse.processing.org/t/perceptron-in-javascript/25144>\
**Category:** Gallery\
**Created:** [November 3, 2020, 1:02am UTC](https://discourse.processing.org/t/perceptron-in-javascript/25144 "2020-11-03T01:02:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeguppy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codeguppy/32/8322_2.png) [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Post date:** [November 3, 2020, 1:02am UTC](https://discourse.processing.org/t/perceptron-in-javascript/25144/1 "2020-11-03T01:02:59Z")

</div>

This is an implementation of a basic perceptron in JavaScript. Inspired by Daniel Shiffman’s work on Neural Networks and other sources.

Try to add dots with your mouse on the canvas and see how the Perceptron is “guessing” the right color!

https://www.codeguppy.com/code.html?perceptron
