Skip to content

Commit

Permalink
Add star field section separator
Browse files Browse the repository at this point in the history
  • Loading branch information
jonallured committed Nov 7, 2024
1 parent b69909e commit c24f68d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/models/daily_packet/pdf_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ def draw_front_page

move_down 20

bounding_box([0, cursor], width: bounds.width, height: 40) do
stroke_bounds
star_count = Random.rand(20..50)
gap_size = 6
star_count.times do
star_size = Random.rand(1..4)
star_x = Random.rand(gap_size..(bounds.width - gap_size))
star_y = Random.rand(gap_size..(bounds.height - gap_size))
fill_rectangle [star_x, star_y], star_size, star_size
end
end

move_down 20

text "Reading Pace", style: :bold, size: 20
text daily_packet.reading_list_phrase, size: 12

Expand Down

0 comments on commit c24f68d

Please sign in to comment.