Skip to content

Instantly share code, notes, and snippets.

View ElRochito's full-sized avatar
🏠
Working from home

Julien ElRochito

🏠
Working from home
View GitHub Profile
@ElRochito
ElRochito / app.js
Created December 4, 2013 13:11 — forked from QGao/app.js
var win = Ti.UI.createWindow(
{ backgroundColor: 'black' }
);
var center1 = {'x': 100, 'y':100};
var center2 = {'x': 100, 'y':250};
var lastIndex = 1;
var background = Ti.UI.createView({ backgroundColor:"#444444", });
var view = Ti.UI.createView({ backgroundColor:'red', center:center1, width:100, height:100, zIndex:lastIndex++, });
var view2 = Ti.UI.createView({ backgroundColor:'green', center:center2, width:100, height:100, zIndex:lastIndex, });
background.addEventListener('touchstart', function(e){