Roger Dannenberg – [OLD – FALL 2016] 15-104 • COMPUTING for CREATIVE PRACTICE https://courses.ideate.cmu.edu/15-104/f2016 Professor Roger B. Dannenberg • Fall 2016 • Introduction to Computing for Creative Practice Sat, 12 Sep 2020 00:19:45 +0000 en-US hourly 1 https://wordpress.org/?v=4.5.31 Image Post Test https://courses.ideate.cmu.edu/15-104/f2016/2016/10/29/image-post-test/ https://courses.ideate.cmu.edu/15-104/f2016/2016/10/29/image-post-test/#respond Sat, 29 Oct 2016 02:01:32 +0000 https://courses.ideate.cmu.edu/15-104/f2016/?p=6292

imagetest

var me;

function preload() {
    me = loadImage("http://i.imgur.com/o3DFass.jpg");
}

function setup() {
    createCanvas(400, 400);
    background(135, 206, 250);//sky blue background
    //scale the image to fit canvas width; maintain aspect ratio
    me.loadPixels(); //load image pixels
    noLoop();
}

function draw(){
    image(me, 0, 0);
}

]]>
https://courses.ideate.cmu.edu/15-104/f2016/2016/10/29/image-post-test/feed/ 0