Giter VIP home page Giter VIP logo

p5.polar's People

Contributors

liz-peng 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  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

p5.polar's Issues

PolarSquares failing

I am trying to create some squares and it is failing with a typeError:

polarSquares(8,4,160);

image
p5.Polar.min.js:2 Uncaught TypeError: this.square is not a function

It fails in PolarSquare:
image

I am not sure what the cause of this could be, I would appreciate some help about it

Add support for custom functions

I love the p5.Polar library! I've been enjoying using it to make radially symmetric designs.

In my use, I added a function to allow for user-created shapes and designs in addition to the existing geometric ones (triangle, square, octagon, etc).

Simple example design

The function I added to my fork of this repo is here

Should I submit a PR for this, do you think? It's a slight departure from the existing design of the library, but it's something I could see people getting some benefit from as well, similar to the existing library's support for callbacks.

shiftRotate breaks everything

Hey Liz! the introduction of shiftRotate in 7fdf013 seems to break everything? It's being called without a reference to this but it's stored in the prototype so this is necessary. I guess just putting this in front of every call might fix things? I haven't looked all the way through the file and am unsure...

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.