Skip to content
Advertisement

Error in object generation to logic gates simulator in p5.js

in my logic gates simulator I am doing another object to generate to the canvas and I am doing a frequency generator but when I have the onclick function on the button so that it is generated, my frequency does not work and the whole object does not work. Someone would advise me thank you.

The link to the whole project is here in the online p5.js editor: https://editor.p5js.org/jakubmitrega1/sketches/Mg1BGpimz

Entity generation functions:

JavaScript

Generator code:

JavaScript

HTML code:

JavaScript

Advertisement

Answer

In this line :

JavaScript

you don’t pass the frequency to the generator

JavaScript

should work?

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement