Sha256: b23509865a65e9b02ce57882a15c9b951f8ec3313d769e6fa89fdf71fcb9c8f4

Contents?: true

Size: 967 Bytes

Versions: 10

Compression:

Stored size: 967 Bytes

Contents

# The beginShape() function begins recording vertices 
# for a shape and endShape() stops recording. 
# A vertex is a location in space specified by X, Y, 
# and sometimes Z coordinates. After calling the beginShape() function, 
# a series of vertex() functions must follow.  
# To stop drawing the shape, call the endShape() functions.


def setup
  size 200, 200
  background 10, 10, 50
  no_fill
  stroke_weight 3
  stroke 102
  begin_shape  
  curve_vertex 168, 182 
  curve_vertex 168, 182 
  curve_vertex 136, 38 
  curve_vertex 42, 34 
  curve_vertex 64, 200 
  curve_vertex 64, 200 
  end_shape  
  
  stroke 51 
  begin_shape LINES 
  vertex 60, 40 
  vertex 160, 10 
  vertex 170, 150 
  vertex 60, 150 
  end_shape  
  
  stroke 126 
  begin_shape  
  vertex 60, 40 
  bezier_vertex 160, 10, 170, 150, 60, 150 
  end_shape  
  
  stroke 255 
  begin_shape POINTS 
  vertex 60, 40 
  vertex 160, 10 
  vertex 170, 150 
  vertex 60, 150 
  end_shape  
end

Version data entries

10 entries across 10 versions & 1 rubygems

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