Examples / p5.js Examples / / Daily Greetings

Daily Greetings

example p5.js javascript if-statements

This sketch shows a different message depending on the time of day.

Click here to edit this code in the p5.js editor.

good morning good afternoon good evening go to bed

Remix Ideas

  • Change the messages and emojis that show throughout the day.
  • Add different times of day, or activites that always happen around the same time.
  • Show messages at specific times, like 11:11 or 1:23

Comments and Questions

Happy Coding is a community of folks just like you learning about coding.
Do you have a comment or question? Post it here!