Sha256: 60935c55c020432e00648aa16c49d187b4907daf44b2d78ce9b41e18ead5f9ec

Contents?: true

Size: 413 Bytes

Versions: 10

Compression:

Stored size: 413 Bytes

Contents

# One Frame. 
# 
# Saves one PDF with the contents of the display window.
# Because this example uses beginRecord, the image is shown
# on the display window and is saved to the file.  

load_library 'pdf'
include_package 'processing.pdf'

def setup
  size(600, 600)    
  begin_record(PDF, "line.pdf")     
  background(255)
  stroke(0, 20)
  strokeWeight(20.0)
  line(200, 0, 400, height)    
  end_record
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-processing-2.6.3 samples/processing_app/library/pdf/one_frame.rb
ruby-processing-2.6.2 samples/processing_app/library/pdf/one_frame.rb
ruby-processing-2.6.1 samples/processing_app/library/pdf/one_frame.rb
ruby-processing-2.6.0 samples/processing_app/library/pdf/one_frame.rb
ruby-processing-2.5.1 samples/processing_app/library/pdf/one_frame.rb
ruby-processing-2.5.0 samples/processing_app/library/pdf/one_frame.rb
ruby-processing-2.4.4 samples/processing_app/library/pdf/one_frame.rb
ruby-processing-2.4.3 samples/processing_app/library/pdf/one_frame.rb
ruby-processing-2.4.2 samples/processing_app/library/pdf/one_frame.rb
ruby-processing-2.4.1 samples/processing_app/library/pdf/one_frame.rb