Sha256: cf55f4a3e394f043c3b7ac36d8deba3a2241c16b9978ee35aab9ca9a42cd27df
Contents?: true
Size: 546 Bytes
Versions: 5
Compression:
Stored size: 546 Bytes
Contents
module RubySketch # @private class GLSL def initialize(glsl) @shader = Reflex::Shader.new glsl end # @private def on_start__(window) start = Time.now.to_f window.draw = proc do |e, painter| painter.paint do |p| c = window.canvas w = c.width h = c.height t = Time.now.to_f - start p.shader @shader, resolution: [w, h], time: t if @shader p.fill 1 p.rect 0, 0, w, h end end end end# GLSL end# RubySketch
Version data entries
5 entries across 5 versions & 1 rubygems