GithubHelp home page GithubHelp logo

hologram's Introduction

Hologram

import processing.video.*; PImage hologram; float x; float y; float a; float b;

Capture video;

void setup(){ fullScreen(); //size(1280,750); video=new Capture(this, 640,400,100); video.start(); hologram =loadImage("hologram_bg.jpg"); x=250; y=250; a=x/2; b=y/2; }

void draw(){ video.read(); background(0); //image(hologram,0,8,1280,720); rectMode(CENTER); //rect(width/2, height/2,200,200); //rect(width/2, height/2, height,height); //noFill(); //stroke(250,250,250);

image(video, width/2-a, height/2-a-x-20,x,y);//top pushMatrix(); translate(width/2,height/2); scale(1,-1); image(video, -125,-x-100-45,x,y);// botton left video, width/2-a-x-20, height/2-a,x,y popMatrix();

pushMatrix(); translate(width/2, height/2); scale(1,-1); rotate(PI/2); image(video, -125,-x-100-48,x,y);//right

popMatrix();

pushMatrix(); translate(width/2-150-250, height/2+125); rotate(-PI/2); image(video, 0,0,x,y);//left popMatrix();

}

hologram's People

Contributors

olivia99 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.