Daily Creative Coding

元「30 min. Processing」。毎日、Creative Codingします。

カメラ

カメラから所得した映像をグリッチする

/** * glitch camera * * @author aa_debdeb * @date 2016/10/06 */ import processing.video.*; Capture camera; int[][][] references; void setup(){ size(640, 480); camera = new Capture(this, 320, 240); camera.start(); makeReferences(); } void m…

カメラから取得した映像を二値化してから横線に変換する

/** * camera of horizontal line * * @author aa_debdeb * @date 2016/10/05 */ import processing.video.*; Capture camera; void setup(){ size(640, 480); camera = new Capture(this, 320, 240); camera.start(); } void draw(){ camera.loadPixels(); …

カメラから取得した映像を二値化してパーリンノイズ柄にする

/** * binary image for camera by perlin noise * * @author aa_debdeb * @date 2016/07/19 */ import processing.video.*; Capture camera; PVector offset; float scale = 0.01; float tScale = 0.1; color c1 = color(255, 20, 147); color c2 = color(2…

カメラで取得したイメージのRGBをHSBに変換する

/** * rgb to hsb for camera image * * @author aa_debdeb * @date 2016/05/26 */ import processing.video.*; Capture camera; void setup(){ size(480, 360); camera = new Capture(this, width, height); camera.start(); } void draw(){ colorMode(RGB,…

カメラから取得したイメージを水彩画風モザイクにする

/** * watercolor mosaic from camera image * * @author aa_debdeb * @date 2016/05/25 */ import processing.video.*; Capture camera; ArrayList<Point> points; void setup(){ size(640, 480); camera = new Capture(this, width, height); camera.start(); poi</point>…

カメラから取得した映像をラインで表現する

/** * Line Camera * * @author aa_debdeb * @date 2016/03/10 */ import processing.video.*; int pointNum = 1500; float nearDist = 50; PVector[] points; boolean[][] distMap; Capture camera; void setup(){ size(640, 480); points = new PVector[po…

カメラから取得した画像を立方体のテクスチャにする

/** * Texture by Camera * * @author aa_debdeb * @date 2016/01/06 */ import processing.video.*; Capture camera; void setup(){ size(500, 500, P3D); camera = new Capture(this, 480, 360); camera.start(); } void draw(){ background(255); transla…

カメラから取得した映像を白黒ドットに変換する

/** * Binary Dot Camera * * @author aa_debdeb * @date 2015/12/30 */ import processing.video.*; float radious = 8; Capture camera; void setup(){ size(640, 480); camera = new Capture(this, width, height); camera.start(); } void draw(){ backg…

カメラから取り込んだ映像を三次元のメッシュに加工する

/** * Camera by Square Mesh * * @author aa_debdeb * @date 2015/12/14 */ import processing.video.*; Capture camera; float gridWidth = 12; float maxZ = -100; void setup(){ size(640, 480, OPENGL); smooth(); camera = new Capture(this, width, h…

カメラ画像を三次元の色付きボックスで表現する.

飛び出る3Dみたい. /** * Color Box Image * * @author aa_debdeb * @date 2015/11/24 * */ import processing.video.*; Capture camera; void setup(){ size(640, 480, P3D); smooth(); camera = new Capture(this, width, height); camera.start(); } voi…

カメラ画像を三次元のボックスで表現する

/** * Box Image * * @author aa_debdeb * @date 2015/11/23 * */ import processing.video.*; Capture camera; void setup(){ size(640, 480, P3D); smooth(); camera = new Capture(this, width, height); camera.start(); } void draw(){ background(255)…

映像のRGBの各層をずらす

/** * Video with Shifted RGB Layers * * @author aa_debdeb * @date 2015/11/09 */ import processing.video.*; Capture camera; PVector rDiff = new PVector(-50, -50); PVector gDiff = new PVector(50, -50); PVector bDiff = new PVector(0, 100); vo…

カメラ映像に残像を入れる

/** * Slow Shutter Video * * @author aa_debdeb * @date 2015/11/08 */ import processing.video.*; Capture camera; color[][] previousPixels; int frames = 20; void setup(){ size(640, 480); camera = new Capture(this, width, height); camera.star…

カメラの基礎1

Webカメラの映像を表示する /** * Video * * @author aa_debdeb * @date 2015/11/07 */ import processing.video.*; Capture camera; void setup(){ size(640, 480); camera = new Capture(this, width, height); camera.start(); } void draw(){ image(came…