Giter VIP home page Giter VIP logo

code-package-p5.js's People

Contributors

b-g avatar bohnacker avatar dependabot[bot] avatar joeyklee avatar lew-code avatar maswobod avatar niels-ntg avatar nucliweb avatar paulraschke 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  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  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

code-package-p5.js's Issues

P_3_1_4_01 not feasible to completely rewrite in JS

Was attempting to port P_3_1_4_01.pde and its external classes. Trying to replicate the workings of Ben Fry's TreeMap library proves to be quite difficult. Too many classes. I don't think it's feasible to create a sketch that behaves exactly the same as the Java version. We might have to consider replacing this sketch with one that is less complicated, or at least less awkward to write in JavaScript.

loadImage() pushed to array fails in Firefox

loadImage() does not complete loading images on svg's when run in a loop in Firefox (it works for Chrome and in Firefox Developer Edition). See for example in sketch P_2_3_6_02.

better vector based SVG import

Currently the imported svg shapes are drawn as images e.g. P_2_3_4_01 and are very pixellated, not so nice. Find a ways to have proper vectors form the SVG to canvas.

P_2_1_1_04 does not load (SVGs in Firefox)

It seems maybe to be an issue with loadImage() and svg. I get the following error:

InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable  p5.js:14640
	[49]</p5.Renderer2D.prototype.image http://localhost:8000/libraries/p5/p5.js:14640:5
	[61]</p5.prototype.image http://localhost:8000/libraries/p5/p5.js:20795:3
	bound  self-hosted:918:17
	setup http://localhost:8000/01_P/P_2_1_1_04/:62:3
	p5/this._setup< http://localhost:8000/libraries/p5/p5.js:11564:7
	bound  self-hosted:912:17
	p5/this._runIfPreloadsAreDone http://localhost:8000/libraries/p5/p5.js:11507:7
	p5/this._decrementPreload http://localhost:8000/libraries/p5/p5.js:11516:5
	bound  self-hosted:914:17
	[61]</p5.prototype.loadImage/img.onload

While something seems to get loaded when testing the loadImage() with a callback, if you try to console.log() any of the images in the shapes array, it doesn't return anything in Firefox.

Things seem to work in Chrome.

Maintenance + updating to more recent p5.js version

Hi @Niels-NTG @joeyklee @bohnacker, hope this github issue finds you alle well!

It think it would be a good idea to do some maintenance for the new/upcoming version JP/EN of the book. There will be a new wave of attention and we should be best possible prepared for this. Hence could all of us invest a little time in this? I'm thinking of:

  • Update p5.js dependency to the most recent stable p5.js version
  • @joeyklee could you reach out to your p5.js friends and ask for advice? Which recent version is the best bet for long term support?
  • Create a dev branch for this
  • Check and fix every sketch, with local webserver
  • Check and fix every sketch, with the http://alpha.editor.p5js.org/generative-design/
    ...

Happy to split the work ... :)

PS. @Niels-NTG kind of related ... is there still the plan to have the sketches running interactively on http://www.generative-gestaltung.de/2/

P_1_2_2_01, missing GenerativeDesign.sortColors()

Missing:

  • if (key == 'c' || key == 'C') GenerativeDesign.saveASE()
  • GenerativeDesign.sortColors()
    if (key == '5') sortMode = GenerativeDesign.HUE;
    if (key == '6') sortMode = GenerativeDesign.SATURATION;
    if (key == '7') sortMode = GenerativeDesign.BRIGHTNESS;
    if (key == '8') sortMode = GenerativeDesign.GRAYSCALE;

Task:
Implment sortColor() in generativedesign.js. Has to be most likely be implemented with webworkers: http://www.html5rocks.com/en/tutorials/workers/basics/

index.html (sketch list)

@Niels-NTG

The new index look much nicer! Many thanks for this!

Quickly two small comments:

  • there are some broken images
  • would vote to crop all images to square format (also on gg website)

Could you fix this?

P_3_1_4_02 recursive version of treemap

I've already done a recursive version, but didn't use it for word counting. If anybody has a good idea, if we could do something nice with it, we could still do it.

Very low priority

Code-Package-p5.js for p5js-web-editor

@b-g
Regarding getting the sketches into the p5-web-editor, the idea is to pull the sketches from github. However, this means we would need to put the "encapsulated" sketches somewhere on github. Problem is that when the sketches contain the GG library, etc for each sketch the projects is an unweildy ~610mb (~550 excluding the node_modules).

Question is, should we put the encapsulated code package in the generative-design org or in a separate dummy account?

thanks!

Readme: improve local webserver and setup instructions

@joeyklee

Could you go once more over the readme?

At the moment it reads like you have to install node to run everything, but running index.html in any kind of local webserver would be enough. Could you make the node thing more optional and point out that any local webserver will do?

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.