Sha256: 216fdb1f4cf4b6e3a4d8d9ff98f86e3c6c65b7512df246c4a2f5dc66d619c7e6

Contents?: true

Size: 598 Bytes

Versions: 11

Compression:

Stored size: 598 Bytes

Contents

# This sketch shows how to make a WordCram from any webpage.
# It uses my blog
# Minya Nouvelle font available at http://www.1001fonts.com/font_details.html?font_id=59

require 'ruby_wordcram'

def settings
  size 800, 400
end

def setup
  sketch_title 'WordCram from Web Page'
  color_mode(HSB)
  background(255)
  WordCram.new(self)
          .from_web_page('https://ruby-processing.github.io/about/')
          .with_font(create_font(data_path('MINYN___.TTF'), 1))
          .with_colorer(Colorers.two_hues_random_sats_on_white(self))
          .sized_by_weight(7, 100)
          .draw_all
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby_wordcram-2.1.1 example/test.rb
ruby_wordcram-2.1.0 example/test.rb
ruby_wordcram-2.0.6 example/test.rb
ruby_wordcram-2.0.5 example/test.rb
ruby_wordcram-2.0.4 example/test.rb
ruby_wordcram-2.0.3 example/test.rb
ruby_wordcram-2.0.2 example/test.rb
ruby_wordcram-2.0.1 example/test.rb
ruby_wordcram-2.0.0 example/test.rb
ruby_wordcram-1.0.1 example/test.rb
ruby_wordcram-1.0.0 example/test.rb