Week 4 Project

For this week’s project I decided to make something somewhat ironic in an attempt to create something funny (I think it is).

I made a quote generator that generates a quote and refreshes it for the user’s motivational needs. Needless to say, I was the one that inspired my own design, as I found myself at certain points in the day, struggling to gather the motivation to do anything remotely productive.

One part of this project that was challenging to me was finding out how to load my .csv file into the project, then gathering the correct string to be displayed back into the print().

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function keyPressed() {
if (keyCode === 13 ) {
let currentQuote = int(random(1,20))
print(currentQuote)
displayText = quotes.getString(currentQuote,0)
function keyPressed() { if (keyCode === 13 ) { let currentQuote = int(random(1,20)) print(currentQuote) displayText = quotes.getString(currentQuote,0)
function keyPressed() {
    if (keyCode === 13 ) {
      
      
    let currentQuote = int(random(1,20))
    print(currentQuote)
    displayText = quotes.getString(currentQuote,0)

 

One thought on “Week 4 Project”

  1. A note about the posts – you should choose the “S2025 – Mang” category so the posts show up here https://intro.nyuadim.com/category/s2025mang/

    Also you should increase the size of the embeds so they’re more visible (it’s ok if they don’t fit entirely in the post, e.g. if designed for fullscreen). See here for how to embed your P5js sketch directly into your post: https://intro.nyuadim.com/2022/01/06/how-to-embed-a-p5js-sketch-in-your-blog-post/

    In general you should put some more effort into your documentation / responses. For example this post is missing the areas that you want to improve on / future work.

Leave a Reply