atduskgreg / opencv-processing

OpenCV for Processing. A creative coding computer vision library based on the official OpenCV Java API
Other
1.32k stars 464 forks source link

examples size() parameter use needs to be changed. #80

Closed kasperkamperman closed 7 years ago

kasperkamperman commented 9 years ago

Processing doesn't allow variables anymore as parameter. This is used a lot in the examples size(opencv.width, opencv.height/2);

This gives the following error message: screen shot 2015-06-10 at 16 50 16

Processing 3.0a10

clankill3r commented 9 years ago

Yeah the new size method really sucks.

nonsequitoria commented 7 years ago

A simple fix for all examples that use variables in the size call is to change from something like this:

size(opencv.width + opencv.width/4 + 30, opencv.height)

to this:

surface.setResizable(true); surface.setSize(opencv.width + opencv.width/4 + 30, opencv.height);

atduskgreg commented 7 years ago

closed as of 21135f2e632838381898535cfd06f0243e4c186e and release 0.5.4