Git Product home page Git Product logo

Comments (6)

abhikpal avatar abhikpal commented on May 30, 2024

Hey,

For now here is the bug I encounter

The code on the main branch (and PyPI) is a bit outdated. Since the
color parser was added after we did the last developmental release,
Color(255) won't work (yet).

There are two things you can do right now:

  • Get the latest code from the develop branch. That way you also get
    access to a whole lot of new features (we also have documentation
    here: p5.rtfd.io/en/develop, and examples here:
    github.com/p5py/p5-examples)

  • If you want to continue using the older version, you need to
    explicitly provide the red, green, and blue values when you use
    Color(). Additionally these values should be in the 0 to 1 range.
    So white would be Color(1, 1, 1), black would be Color(0, 0, 0),
    etc.

One of the feature I am waiting the most is the export to PDF

We are prioritizing porting the core Processing API first before
adding PDF support, etc. But hopefully we'll get there soon 😃

Thanks for bringing this up, though! Please let us know if something else
breaks/doesn't work as expected.


Abhik

from p5.

artyprog avatar artyprog commented on May 30, 2024

Thank you.
Betwise here are some work I ve done on the same subject:

http://salvatore.pythonanywhere.com/RapydP5/default/editor
http://salvatore.pythonanywhere.com/RapydBox/default/editor
http://salvatore.pythonanywhere.com/RapydRay
http://salvatore.pythonanywhere.com/RapydGlow/default/editor

from p5.

abhikpal avatar abhikpal commented on May 30, 2024

Interesting! I shall take a look. I'm assuming I can find the source code on your Github?

from p5.

artyprog avatar artyprog commented on May 30, 2024

Thanks :-)

Here is the link for RapydBox, others are only adpatation.
As suggested the desktop version is better, it runs with node-webkit (nwjs).
Run the samples from the sketches folder, there are some pretty ones.

It's a little old now more than 4 years...

https://github.com/artyprog/RapydBox

RapydBox mainly use two lib

RapydScript is an awesome tool.
It is Javascript with Python syntax an some niceties...

canvas.js has been created by the authors of NodeBox.
Look at it, very well done....

Regards

from p5.

abhikpal avatar abhikpal commented on May 30, 2024

Ahhh.. I see. I don't think I'll be able to pull in code (at least not
directly) from RapydBox. We want p5 to be a standard Python library so
that it can be used with other packages in the Python ecosystem.

But thanks for the links, I shall take a look at them in general.

from p5.

abhikpal avatar abhikpal commented on May 30, 2024

The new version fixes this :)

from p5.

Related Issues (20)

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.