Sha256: 01805e1b8fbe1674b63abe3d19c1ec5fc45356dc86f328c5d9a22a6d2659bf07
Contents?: true
Size: 448 Bytes
Versions: 6
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true module Gruff class Renderer::Circle def initialize(args = {}) @color = args[:color] @width = args[:width] || 1.0 end def render(origin_x, origin_y, perim_x, perim_y) draw = Renderer.instance.draw draw.push draw.fill(@color) draw.stroke(@color) draw.stroke_width(@width) draw.circle(origin_x, origin_y, perim_x, perim_y) draw.pop end end end
Version data entries
6 entries across 6 versions & 1 rubygems