• KJ Ha

Week 01

Link to sketch: https://editor.p5js.org/kh1785/sketches/pHWfN1V1

This week's assignment was developed from the class exercise from last week.

I was inspired by the idea that a number can also be converted to its corresponding single-character string representation. First, I thought of using Unicode but I encounter some difficulties fully converting it to a number and randomizing the sequence. I chose to use char() function instead.

I wanted to incorporate a matrix-like feeling into my sketch and add some interactive elements. The variable a will be randomizing ranging from 0 to 20000 and frame rate will be determined by the position of mouseX, ranging from 1 to 15.

Lastly, if the enter key is pressed, the variable op will turn into 0 letting the original value of i (the number of divisors) can be revealed.