function resizeCanvas () {
//change the width and height of the canvas to match window
windowWidth = window.innerWidth,
windowHeight = window.innerHeight;
var resizeBoids = document.getElementById('boids');
resizeBoids.width = windowWidth ;
resizeBoids.height = windowHeight ;
var resizeOffscreen = document.getElementById('offscreen');
resizeOffscreen.width = windowWidth ;
resizeOffscreen.height = windowHeight ;
console.log('the new width of the canvas: ');
console.log(windowWidth);
console.log('the new height of the canvas: ');
console.log(windowHeight);
this.w = windowWidth;
this.h = windowHeight;
return this;
}
Everywhere, our objects get smarter, while demanding more from us: time, effort, distractions, notifications. I have found that the best interfaces are built by stripping away everything but the bare essentials. To relax, I paint in black and white. I love materials that you can trust, like fresh cut pine and milled aluminum. As a product designer, I've spent the last 5 years exploring the connections between hardware, software and people. Whether it's interfaces, objects, or devices, I care about creating a world where technology connects with our innate creativity. If that mission is compelling to you, let's chat in person.