Sha256: d7c4c4a1d6f417485b400d1a90ae88892fc97e6cc4e23690a93fb9ebb61a5c32
Contents?: true
Size: 492 Bytes
Versions: 8
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true module Gruff # @private class Renderer::Ellipse def initialize(color:, width: 1.0) @color = color @width = width end def render(origin_x, origin_y, width, height, arc_start, arc_end) draw = Renderer.instance.draw draw.push draw.stroke_width(@width) draw.stroke(@color) draw.fill('transparent') draw.ellipse(origin_x, origin_y, width, height, arc_start, arc_end) draw.pop end end end
Version data entries
8 entries across 8 versions & 1 rubygems