Skip to main content
100%

test-block

✓ Published0🌍 Public
SSammeSheikh
Last edited Nov 17, 2017
Created on Nov 17, 2017

This example demonstrates a p5.js sketch that renders the phrase “hello world” in an interactive, real-time manner. The sketch draws text on a canvas, with the fill color changing randomly every few frames as the word is repeatedly redrawn. A mouseMoved function listens for pointer movement and displays individual letters at the cursor’s position, cycling through the message’s characters in sequence. The code uses the p5.js library (version 0.5.14) and is wrapped in an instance mode with the canvas attached to a specific HTML container.

AI-generated description

Here is a test block for playing with p5.js. Also, to begin making the case for why plaintext and Markdown can be so powerful. http://blockbuilder.org/SammeSheikh/76cafcb8aa94f26f4593ce8fb4d69460 railroad image

Here is an example of real-time text editing (code, documentation) through commonly available client-side software in combination with freely available server-side services (storage, distribution) to generate open, modifiable, platform-independent, reproducible "applications". And in doing so participating in the gamut of private and public (and more importantly, combinations thereof!) entities that make the web happen. Also, railroads!

  1. We need to create four files
  • .block
  • README.md
  • index.html
  • sketch.js
  1. We need to add these to a GitHub gist
  2. We need to navigate to the URL http://blockbuilder.org/[your github username]/[your gist id]
  3. The last step is to play around with the code I've provided and/or using p5.js documentation.

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/bulbil/'>bulbil</a>'s block: <a href='http://bl.ocks.org/bulbil/1646e9a53526c4ff6362b56d595cc244'>test-block</a>

forked from <a href='http://bl.ocks.org/SammeSheikh/'>SammeSheikh</a>'s block: <a href='http://bl.ocks.org/SammeSheikh/76cafcb8aa94f26f4593ce8fb4d69460'>test-block</a>

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/9d4947729573fd585249cfc2893d0fa3'>test-block</a>

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/7795641bb480211897f2d856f687e4a6'>test-block</a>

mit Licensed

Similar vizzes