Giter VIP home page Giter VIP logo

p5-boilerplate-for-fxhash's Introduction

p5-boilerplate-for-fxhash

This is the basic boilerplate with minimal installations to setup p5.js for fxhash(Visual Studio Code is most suited although you can use other editors).

Requirments:

1.Visual Studio Code

2.Git(Optional)

Getting Started

There are two ways to download this boilerplate:

  1. Basic one is to directly download the zip file from github itself by clicking code->Download Zip

image

  1. Other one is through git clone (git insallation is needed ) Now if you have git setted up head to terminal/command prompt and enter

    git clone https://github.com/Prime351585/p5-boilerplate-for-fxhash.git

    The installation will go like this

    image

Now if you've cloned the boilerplate through git you may see this folder

image

And if you've downloaded it you'll need to extract it.

Vs Code Setup

if you've installed Vs Code then head to the Vs Code Extension place and install Live Server extension(Ritwick Dey)

image

Once the extension is installed you need to restart Vs Code and you'll see a little Go Live option in bottom right corner of your Vs code window

Now once inside Vs code window go open the boilerplate as a folder by going to File->Open Folder and selecting the p5-boilerplate folder

image

Once opened you'll see the files to work on

image

So inside boilerplate we have directories like this...

TSdef folder the two files which enable intellesense in vscode which help to code with ease(i borrowed it from stackOverflow https://stackoverflow.com/questions/54581512/make-vscode-understand-p5js ย )

Inside Library folder I've included both core library files of p5.js and p5.min.js one can use any one of it by selecting from html file

Then we have main.js file in which we'll work

Then there is html file which contains fxhash script

There is a css file which keeps the canvas at centre of the screen.

By default the main.js will have a code to display a circle of random radius and random color alongwith the fxhash seed

The first two lines of main.js are for refrencing the intellisense for vscode if you don't want intellisense you can remove these two lines and delete TSDef folder as well.

/// <reference path="./TSDef/p5.global-mode.d.ts" /> "use strict";

Once everything is setted up hit go live to open live preview in a browser and you'll see something like this

image

Zipping Files and Getting ready to upload zip to fxhash

Once you've completed writing your code open the folder in which you're working via file explorer or you can directly Reveal it in file explorer from Vs Code

image

Once the folder is opened select all files

image

Right Click and compress it to a zip

image

You'll get a zip file,Rename it to anything you want

image

Then upload it on fxhash and you are good to go.................... : )

p5-boilerplate-for-fxhash's People

Contributors

prime351585 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.