Sha256: dca1aaeb8e990c308cda76e2483b65cb27f82c7b5f1932c2a6fac09d00dd5d9e

Contents?: true

Size: 543 Bytes

Versions: 4

Compression:

Stored size: 543 Bytes

Contents

# The basic shape primitive functions are triangle, rect, 
# quad, and ellipse. Squares are made with rect and circles 
# are made with ellipse. Each of these functions requires a number
# of parameters to determine the shape's position and size.


size 640, 360
background 0 
no_stroke
fill 204 
triangle 18, 18, 18, 360, 81, 360 
fill 102
rect 81, 81, 63, 63 
fill 204
quad 189, 18, 216, 18, 216, 360, 144, 360 
fill 255
ellipse 252, 144, 72, 72
fill 204
triangle 288, 18, 351, 360, 288, 360 
fill(255)
arc(479, 300, 280, 280, PI, TWO_PI)


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-processing-2.4.4 samples/processing_app/basics/form/shape_primitives.rb
ruby-processing-2.4.3 samples/processing_app/basics/form/shape_primitives.rb
ruby-processing-2.4.2 samples/processing_app/basics/form/shape_primitives.rb
ruby-processing-2.4.1 samples/processing_app/basics/form/shape_primitives.rb