Quantcast
Channel: Processing Forum
Browsing all 1768 articles
Browse latest View live

Re : Working with a video frame in memory

Sure. Loading the frame/pixels by definition comes before displaying it anyway.Code ExampleMovie mov;void setup() {  size(640, 360);  mov = new Movie(this, "yourMovie.mov");  mov.loop();}void draw() {...

View Article


Re : Problem with alpha on Procesing 2.02 with P2D and P3D modes

You can't download the repo build. You have to build it yourself from the repo's source code with ant. Note that the source code and included files is quite large (1.4 GB), so it may be easier to just...

View Article


Re : LightPainting

I don't understand what is your problem / your question.

View Article

Re : LightPainting

No problem. I will try to clarify.1. ObjectiveDraw a text or something else with a flashlight in front of a webcam2. The way I tried to do itUser can choose a value (brightLimit) which define the...

View Article

Re : Sorting TableRow in Table

I looked at the source code of the Table class. The way it is implemented makes the sort of the table according to one column quite hard...A possible way to workaround it is to make the sort to update...

View Article


Re : Working with a video frame in memory

Hmm, that's exactly what I tried and was getting a value of zero back for every pixel. There must be something else wrong with my Processing setup or something (using Eclipse). I'll dig deeper into it...

View Article

Re : Working with a video frame in memory

So it seems that when I use anything other than the default renderer I can't get the correct pixel data from the movie object. But once I switch to the default it works fine. Is this supposed to be the...

View Article

Re : Working with a video frame in memory

The OpenGL renderers (P2D, P3D) do everything differently behind the scenes, however much work has been put into it for them to behave identically in front of the scenes. When I run the code under the...

View Article


Calculate and compare the amount of two colours in a video

Hello all,I'm trying to detect, calculate and compare the amount of two colours present in a webcam feed.something similar to what is being done here...

View Article


Re : Calculate and compare the amount of two colours in a video

This sort of a sketch has several steps:1) Get a webcam feed working.2) Learn about the pixels array and how colors work.3) Decide what you mean by "red" and "green".4) Do some looping.Let's start at...

View Article

Re : Calculate and compare the amount of two colours in a video

Thanks for the response, here is what I have so farimport processing.video.*;Capture cam;//colors to look forcolor trackColor;int colorCount=0;boolean click= false;void setup() {  size(640, 480);...

View Article

Re : Sorting TableRow in Table

This is one workaround I thought of.... It sort of defeats the purpose of TableRow... If anyone has a better solution or advice, please post it here....      Table table = new Table();...

View Article

Image may be NSFW.
Clik here to view.

textWidth or font problem when exporting to PDF

The following code writes two lines with the same font and settings, but the first one using the existing text() method, while the other one uses a function called drawChars() which writes a given...

View Article


Re : Working with a video frame in memory

Okay got it, I had 2.0.1; there appears to have been a bug that was fixed in 2.0.2 causing the issue. Now that I have 2.0.2 your above code runs fine. Thanks!

View Article

Re : Problem with alpha on Procesing 2.02 with P2D and P3D modes

Aaah, yes, that's what I meant but I used the wrong word when I said "repo build". I'll wait for the 2.03, hope it's going to be out soon!Thank you again!

View Article


Is there a way to increase the default indent of the processing editor?

I'm using Processing 2.0.2, and it's really starting to get on my nerves that I have to double indent when I want a 4-space margin.I've seen the option to change the default indent margin on other...

View Article

Re : Is there a way to increase the default indent of the processing editor?

In "preferences.txt", find editor.tabs.size=2 and change it to some other value.

View Article


Re : Is there a way to increase the default indent of the processing editor?

Ahh perfect, thank you.

View Article

Re : LightPainting

I don't understand what is your problem / your question.

View Article

Network library in javascript mode

Is there any library for the javascript mode ?I have a sktech who work fine in java mode but not in javascript mode.here is the sketchimport processing.net.*;Client myClient;void setup(){   myClient =...

View Article
Browsing all 1768 articles
Browse latest View live