Sha256: bdbe77a88649805dd8cf09ad6c19d2b18efbb6a4d5b8cca0eae9f7e33c18af00
Contents?: true
Size: 538 Bytes
Versions: 5
Compression:
Stored size: 538 Bytes
Contents
# Description: # This is a full-screen demo # Since processing-2.0 it is opengl full_screen def setup size displayWidth, displayHeight, P3D no_stroke end def draw lights background 0 fill 120, 160, 220 (width/100).times do |x| (height/100).times do |y| new_x, new_y = x * 100, y * 100 push_matrix translate new_x + 50, new_y + 50 rotate_y(((mouse_x.to_f + new_x) / width) * Math::PI) rotate_x(((mouse_y.to_f + new_y) / height) * Math::PI) box 90 pop_matrix end end end
Version data entries
5 entries across 5 versions & 1 rubygems