Home   Jensen Archive   jWiki   Jensen News   Jensen Cloud   Jensen Programming   Jensen Family Tree   JensenDiary

Camera Art

11/11/2020

This program makes different color scales in real time with the user's camera.

import processing.video.*;
import controlP5.*;
float resolution = 10f;

Capture cam;
Slider sliderR,sliderG,sliderB;
void setup() {
  size(640,480);
  String[] cameras;
do{
  cameras = Capture.list();
}while(cameras.length==0);
  if (cameras.length == 0) {
    println("There are no cameras available for capture.");
    exit();
  } else {
    println("Available cameras:");
    for (int i = 0; i < cameras.length; i++) {

...

Need any help?

If you have a problem with this code, you can contact me at gerardjensenolmo@gmail.com