🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

runp5

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runp5

Horizons unit 0 p5 environment runner

latest
Source
npmnpm
Version
0.0.19
Version published
Maintainers
1
Created
Source

runp5: command line tool for serving p5 projects

Installation

npm install -g git+ssh:git@github.com:horizons-school-of-technology/runp5.git

Usage

runp5 main.js

where main.js is the root file of your p5 program

Programming environment

runp5 uses p5.js's instance mode, with the instance named game. You should call p5 functions using game.fill() etc:

game.fill(0, 0, 255);
game.ellipse(50, 50, 100, 100);

Game loop:

runp5 allows you to create a game loop in one of two ways:

  • By setting the game.draw function: game.draw = function() { };

  • By creating a while(true) loop and calling await frame(); in each iteration of the loop to advance the frame counter

FAQs

Package last updated on 10 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts