Sha256: 9f93b9ee5718d6ced60acf7457264a9602e1b23223d0cf843713a5b2816e0524
Contents?: true
Size: 375 Bytes
Versions: 4
Compression:
Stored size: 375 Bytes
Contents
require 'ruby-processing' class RotateYSketch < Processing::App def setup render_mode P3D rect_mode CENTER @theta = 0 end def draw background 255 stroke 0 fill 175 translate width/2, height/2 rotate_y @theta rect 0, 0, 100, 100 @theta += 0.02 end end RotateYSketch.new :title => "Rotate Y", :width => 200, :height => 200
Version data entries
4 entries across 4 versions & 1 rubygems