Should designers know how to code?
Definitely. Below are some creative coding experiments that I did using p5.js.
Below is a recreation of Camille Graeser's painting using creative code. To interact with it, hover your mouse over each rectangle, and it will change its colour.
Below is a laser light trail using creative code. To interact with it, press your mouse cursor on the space of the canvas, it will blink with random colour every time.
Below is a simple abstract composition using creative code. To interact with it, press your mouse cursor on the space of the canvas, it will blink with random colour every time.