[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Favourite SuperCollider Demo Patches



I've always like this one for some reason, by Mr. McCartney

(
var w, v, r, c;

w = SCWindow("icon", Rect(100,100,400,400));
w.view.background = Color(0.5,0.5,0.8);

r = Rect(180,180,40,40);
c = [7/16, 9/16];

8.do {|i|
        v = SCStaticText(w, r);
        v.background = Gradient(Color.grey(c[i>>1&1]),
Color.grey(c[i>>1+1&1]), [\h,\v][i&1]);
        r = r.insetBy(-20,-20);
        c = c + [-1/16, 1/16];
};

w.front;
)