Sha256: 25ee87a7b615b70c0a3bf3084456b693fdb99df0ffad119bc443817a11f12b04

Contents?: true

Size: 345 Bytes

Versions: 10

Compression:

Stored size: 345 Bytes

Contents

# Width and Height. 
# 
# The 'width' and 'height' variables contain the width and height 
# of the display window as defined in the size() function. 


def setup    
  size 640, 360     
	background 127 
	no_stroke	
	(0...height).step(20) do |i|
		fill 0 
		rect 0, i, width, 10 
		fill 255 
		rect i, 0, 10, height 
	end
end

def draw
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-processing-2.6.3 samples/processing_app/basics/structure/width_height.rb
ruby-processing-2.6.2 samples/processing_app/basics/structure/width_height.rb
ruby-processing-2.6.1 samples/processing_app/basics/structure/width_height.rb
ruby-processing-2.6.0 samples/processing_app/basics/structure/width_height.rb
ruby-processing-2.5.1 samples/processing_app/basics/structure/width_height.rb
ruby-processing-2.5.0 samples/processing_app/basics/structure/width_height.rb
ruby-processing-2.4.4 samples/processing_app/basics/structure/width_height.rb
ruby-processing-2.4.3 samples/processing_app/basics/structure/width_height.rb
ruby-processing-2.4.2 samples/processing_app/basics/structure/width_height.rb
ruby-processing-2.4.1 samples/processing_app/basics/structure/width_height.rb