Sha256: 6f6e1f935e57f1bae06975748bdd9125c0f2a1e1210e5af9bbce5066b3625862
Contents?: true
Size: 413 Bytes
Versions: 4
Compression:
Stored size: 413 Bytes
Contents
require 'ruby-processing' class RotatingAnotherSquareSketch < Processing::App def setup render_mode P3D rect_mode CENTER @theta2 = 0 end def draw background 255 stroke 0 fill 175 translate 150, 150 rotate_y @theta2 rect 0, 0, 60, 60 @theta2 += 0.02 end end RotatingAnotherSquareSketch.new :title => "Rotating Another Square", :width => 200, :height => 200
Version data entries
4 entries across 4 versions & 1 rubygems