{
   "ancestor_list" : [],
   "description" : "Messing around with pen, trying not to use randomness. Turned out like a 90's screen saver.",
   "name" : "Cheap Screen Saver (randomness free)",
   "author" : "rukano",
   "is_private" : null,
   "id" : "1-4MY",
   "code" : "w = Window(\"screensaver\", Window.screenBounds).front.fullScreen;\r\nw.view.keyDownAction = { w.close };\r\nu = UserView(w, w.view.bounds);\r\nu.background = Color.black;\r\nu.animate = true;\r\nu.clearOnRefresh = false;\r\nu.drawFunc = { |u|\r\n\tvar width = u.bounds.width;\r\n\tvar height = u.bounds.height;\r\n\tvar size = 2;\r\n\tPen.fillColor = Color.black.alpha_(sin(u.frame).abs/100);\r\n\tPen.fillRect(u.bounds);\r\n\tPen.strokeColor = Color(u.frame/1e3%1,sin(u.frame/100).abs,cos(u.frame/666).abs,0.1);\r\n\tPen.rotate(u.frame/(360/4), width/2, height/2);\r\n\tPen.scale(size, size);\r\n\tPen.use{\r\n\t\tPen.moveTo(Point(0,0));\r\n\t\t100.do{ |i| Pen.lineTo(Point(u.frame * cos(i) % 400, u.frame / sin(i) % 400)) };\r\n\t\tPen.stroke;\r\n\t};\r\n};",
   "labels" : [
      "cheap",
      "screen saver",
      "animation"
   ]
}
