Comments (6)
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 beColor(1, 1, 1)
, black would beColor(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.
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.
Interesting! I shall take a look. I'm assuming I can find the source code on your Github?
from p5.
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.
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.
The new version fixes this :)
from p5.
Related Issues (20)
- Weird jittery behavior when `background()` is not called in `draw()` while using the skia renderer. HOT 12
- Exclude building test files into distribution builds HOT 2
- extend CI tests for windows and mac-os platform HOT 2
- Too many open files error when loading many images HOT 3
- Migrate to poetry HOT 4
- save() throws an error HOT 2
- Errors using "CORNERS" mode HOT 5
- Error installing p5 package: Failed building wheel for PyOpenGL-accelerate HOT 13
- Inconsistency between mouse_is_pressed boolean and mouse_clicked function HOT 1
- Improve installation instructions to account for unuspported Python versions HOT 6
- Setup pre-commit HOT 3
- Optimize skia rendering loop
- KeyError: 'SQAURE' when using stroke_cap(SQUARE) HOT 5
- Fix Code Formatting to Resolve Flake8 Errors in Pre-commit Hook HOT 4
- ModuleNotFoundError: No module named 'npy_tempita' when installing P5. HOT 3
- Not compatible with Python >=3.11 HOT 6
- Unable to install p5 and ml5 in python HOT 2
- pip cant install p5 HOT 3
- Cannot install p5 package with Python 3.12 HOT 5
- Unable to run custom setup and draw HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p5.