Giter Club home page Giter Club logo

p5playground's Introduction

p5PlayGround

An interactive debug tool for p5.js which allows people to manipulate shapes on canvas in real time and visually understand a lot of the math that goes behind drawing stuff on canvas.

  • p5 living coding editor

  • Let people manipulate the shapes on the canvas in realtime

  • double click to add new shape

Demo: http://yining1023.github.io/p5PlayGround/

More Introduction: here

p5playground's People

Contributors

sagar-sm avatar yining1023 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

p5playground's Issues

Add: quad, line, arc

Impressed with the P5PlayGround. Nothing else on the web. Wondering if thought about adding 3 new buttons:

quad(x1, y1, x2, y2, x3, y3, x4, y4)
arc(x, y, w, h, start, stop)
line(x1, y1, x2, y2)

Suggestion: Add ">0" restriction on height and weight

When scaling shapes with mouse in playground mode, setting height/width to zero (and even negative) is now permitted, but this may entail errors like shapes.js:189 Uncaught IndexSizeError: Failed to execute 'ellipse' on 'CanvasRenderingContext2D': The major-axis radius provided (-1.5) is negative, and the browser will refuse to execute subsequent instructions. To avoid this, a greater-than-zero restriction should be introduced in perhaps in line 18-19 in shapes.js. Or, it would be better to show an explicit error message, so that the users may learn from it what is wrong in their code or operation.

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.