Skip to content

App Runner for p5.js projects to be shown on Forbes Digital Plaza

License

Notifications You must be signed in to change notification settings

CreativeInquiry/fdp-clocks

Repository files navigation

fdp-clocks

Prof. Golan's class's clocks for the Forbes Digital Plaza.

sketches/

Put sketches in Contents/Resources/app/sketches/. Each sketch should be in its own folder, with an index.html.

settings.json

Contents/Resources/app/settings.json

JSON key default value explanation
SHOW_LABEL false show author name at beginning of each clock
FADE_SPEED 32 speed of fade to/from black, bigger value = slower
TIMEOUT 1000 /*millis per sec*/ * 60 /*secs per min*/ * 3 /*mins*/ number of milliseconds to show each clock
FRAME_X 0 x coordinate of the iframe relative to window
FRAME_Y 0 y ditto
FRAME_W 800 width ditto
FRAME_H 600 height ditto
BG_COLOR [0,0,0] background color (RGB)
FRAME_STYLE "" custom CSS style (overriding) for iframe
BODY_STYLE "" custom CSS style (overriding) for main app body
START_FULLSCREEN false start the app in fullscreen mode

Compiling the app from source

  1. Download nodejsand npm, e.g. brew install node.
  2. cd into the folder and run npm install to install all dependencies automatically.
  3. npm start to fire up the electron app.

To make standalone app

  1. Download electron-packager, e.g. npm install -g electron-packager
  2. electron-packager . the "dot" means current directory.

About

App Runner for p5.js projects to be shown on Forbes Digital Plaza

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages