Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Cheap Screen Saver (randomness free)
name
code content
w = Window("screensaver", Window.screenBounds).front.fullScreen; w.view.keyDownAction = { w.close }; u = UserView(w, w.view.bounds); u.background = Color.black; u.animate = true; u.clearOnRefresh = false; u.drawFunc = { |u| var width = u.bounds.width; var height = u.bounds.height; var size = 2; Pen.fillColor = Color.black.alpha_(sin(u.frame).abs/100); Pen.fillRect(u.bounds); Pen.strokeColor = Color(u.frame/1e3%1,sin(u.frame/100).abs,cos(u.frame/666).abs,0.1); Pen.rotate(u.frame/(360/4), width/2, height/2); Pen.scale(size, size); Pen.use{ Pen.moveTo(Point(0,0)); 100.do{ |i| Pen.lineTo(Point(u.frame * cos(i) % 400, u.frame / sin(i) % 400)) }; Pen.stroke; }; };
code description
Messing around with pen, trying not to use randomness. Turned out like a 90's screen saver.
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change